Cache icon indicating copy to clipboard operation
Cache copied to clipboard

A lightweight filesystem caching system

Results 8 Cache issues
Sort by recently updated
recently updated
newest added

Hi! I've found this issue while testing my project with PHP 8. Required parameters after optional parameters in function/method signatures are deprecated in PHP 8 This is not a perfect...

At the moment the default directory size is 5 - this creates extremely deep structure that puts a huge strain on the disk when it comes to seeks and writes....

[PSR-06](http://www.php-fig.org/psr/psr-6/) gives a caching interface for interoperability. Whilst doing this will be a BC break for your code and major version bump, it will give greater flexibility for your dependent...

Previously the path to the image e.g. 3/d/4/a/g/4 was being generated multiple times due to multiple calls to `getCacheFile`. This PR fixes that

When I run the `max-age.php` script from demo directory, this is the output: ``` $ php max-age.php First call: generating file... Waiting 4s... Third call: generating cache file, because it...

I think this class can be much more useful if we can cache any kinds of objects. Just let's store serialized variable, and unserialize it upon cache access.

When checking for a condition of 'younger-than' **filectime** is used, that causes the check to return false results on Windows system, as it checks for original file creation date which...