2017 © Pedro Peláez
 

library cache

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.

image

jeroendesloovere/cache

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.

  • Tuesday, November 4, 2014
  • by jeroendesloovere
  • Repository
  • 3 Watchers
  • 5 Stars
  • 22 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 2 Open issues
  • 4 Versions
  • 29 % Grown

The README.md

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., (*1)

Installation

Using Composer

When using Composer you can always load in the latest version., (*2)

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

Check in Packagist., (*3)

Functions

Caching page-parts

``` php Cache::start($folder, $name, $lifetime = false, $overwrite = false); Cache::end();, (*4)


### Caching data ``` php Cache::setData($folder, $name, $data, $lifetime = false); Cache::getData($folder, $name, $overwrite = false);

Setting cache output

``` php Cache::setCachePath($path);, (*5)


### Setting cache file extension ``` php 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., (*6)

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., (*7)

  • 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., (*8)

The Versions

04/11 2014

dev-master

9999999-dev https://github.com/jeroendesloovere/cache

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.

  Sources   Download

MIT

The Requires

  • php >=5.3.3

 

cache php

03/11 2014

1.1.2

1.1.2.0 https://github.com/jeroendesloovere/cache

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.

  Sources   Download

MIT

The Requires

  • php >=5.3.3

 

cache php

03/11 2014

1.1.1

1.1.1.0 https://github.com/jeroendesloovere/cache

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.

  Sources   Download

MIT

The Requires

  • php >=5.3.3

 

cache php

02/04 2014

1.1.0

1.1.0.0 https://github.com/deslooverej/cache

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.

  Sources   Download

MIT

The Requires

  • php >=5.3.3

 

cache php