cache
From SkyPHP
The cache class is used to speed up webpages. Static HTML is saved and is refreshed after the specified time interval.
The static html output is saved in the cache folder located in your $skyphp_storage_path. Every php file in your codebase has it's own cache folder. By specifying a variable name for your cache, you may have many different versions of your html being cached for a given php file.
Example
/*
# SAMPLE USAGE:
$cache = new cache('my-cache','5 minutes');
$cache->start();
if ($cache->expired) {
# html output
# put resource-intensive stuff here
} // cache expired
$cache->stop();
*/
