file-cache
file-cache copied to clipboard
A simple PHP class for caching
Results
4
file-cache issues
Sort by
recently updated
recently updated
newest added
If multiple instances try to write a new cache file simultaneously the file will be inconsistent, because file_put_contents "is identical to calling fopen(), fwrite() and fclose() successively to write data...
Save data with lifetime 0 to make it valid forever, and check against custom timestamp with get. e.g. ``` // some function which generates data function getData() { return array(...