19/11
2014
A quick and simple cache that stores and retrieves things from/to a flat file cache system.
A quick and simple cache that stores and retrieves things from/to a flat file cache system., (*1)
As this is a flat file cache, you need a directory with the appropriate write permissions to it., (*2)
Once you have a directory, then start Cacher like this:, (*3)
$cache = new \Untoyou\Cacher('/var/tmp/cache'); //replace this with the path to your cache directory. $cache->store('key', $html); if ($cache->contains('key')) { $html = $cache->fetch('key'); }