Skip to content

w3guy/cache

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Using Composer

When using Composer you can always load in the latest version.

{
    "require": {
        "jeroendesloovere/cache": "1.1.*"
    }
}

Check in Packagist.

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.

About

This Cache PHP class allows you to cache pages and data.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%