Cache PHP class
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.
Installation
{
"require": {
"jeroendesloovere/cache": "1.1.*"
}
}
Functions
Caching page-parts
Cache::start($folder, $name, $lifetime = false, $overwrite = false);
Cache::end();
Caching data
Cache::setData($folder, $name, $data, $lifetime = false);
Cache::getData($folder, $name, $overwrite = false);
Setting cache output
Cache::setCachePath($path);
Setting cache file extension
Cache::setCacheExtension('.tpl');
Documentation
The class is well documented inline. If you use a decent IDE you'll see that each method is documented with PHPDoc.
Contributing
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.
License
The module is licensed under MIT. In short, this license allows you to do everything as long as the copyright statement stays present.