change permissions of cache directory