This Cache PHP class allows you to cache pages and data for a certain time. Is a stand-alone class to create speed-win on the server.
When using Composer you can always load in the latest version.
{
"require": {
"jeroendesloovere/cache": "1.1.*"
}
}Check in Packagist.
Cache::start($folder, $name, $lifetime = false, $overwrite = false);
Cache::end();Cache::setData($folder, $name, $data, $lifetime = false);
Cache::getData($folder, $name, $overwrite = false);Cache::setCachePath($path);Cache::setCacheExtension('.tpl');The class is well documented inline. If you use a decent IDE you'll see that each method is documented with PHPDoc.
It would be great if you could help us improve this class. GitHub does a great job in managing collaboration by providing different tools, the only thing you need is a GitHub login.
- Use Pull requests to add or update code
- Issues for bug reporting or code discussions
- Or regarding documentation and how-to's, check out Wiki More info on how to work with GitHub on help.github.com.
The module is licensed under MIT. In short, this license allows you to do everything as long as the copyright statement stays present.