Escape the file_put_contents() and file_get_contents() methods to prevent a bad permissions on cache file.