A simple, general-purpose, file-based cache provider
<?php
// You'll need a folder named 'cache' on the same folder of this file with write permissions
$stuff = Cacher::getFromCache('stuff', 900);
if (! $stuff ) {
$stuff = performTimeConsumingTaskToRetrieveTheStuff();
Cacher::saveToCache('stuff', $stuff);
}
?>
This software is released under the MIT license.