Disable cache if no write access to the directory