cache directory must be writable