removed code that tries to change file permissions and make it writable
Now you can set cache file readonly and it will not be used (useful while developing, to disable cache)