2017 © Pedro Peláez
 

library php-simple-cache

PHP class to cache dynamic pages in file and reduce Database overload.

image

rodrigoalviani/php-simple-cache

PHP class to cache dynamic pages in file and reduce Database overload.

  • Monday, December 22, 2014
  • by rodrigoalviani
  • Repository
  • 1 Watchers
  • 0 Stars
  • 6 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

PHP Simple Cache

PHP class to cache dynamic pages in file and reduce Database overload, (*1)

Install

Install via composer:, (*2)

{
    "require": {
        "rodrigoalviani/php-simple-cache": "~0.1"
    }
}

Run composer install then use as normal:, (*3)

require 'vendor/autoload.php';
$cache = new Rodrigoalviani\Cache\Cache($label);

Usage

A very basic usage example:, (*4)

$cache = new Rodrigoalviani\Cache\Cache($_SERVER['REQUEST_URI']);
$cache->cacheInit();

// your page here

$cache->cacheEnd();

A more advanced example:, (*5)

$cache = new Rodrigoalviani\Cache\Cache($_SERVER['REQUEST_URI']);
$cache->set_filePath('tmp/');
$cache->set_cacheMaxAge(84600);
$cache->set_cacheExtension('.tmp');
$cache->cacheInit();

// your page here

$cache->cacheEnd();

Credits

PHP Simple Cache was created by Rodrigo Alviani. Released under the MIT license., (*6)

The Versions

22/12 2014

dev-master

9999999-dev https://github.com/rodrigoalviani/php-simple-cache

PHP class to cache dynamic pages in file and reduce Database overload.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

cache

22/12 2014

v0.1.0

0.1.0.0 https://github.com/rodrigoalviani/php-simple-cache

PHP class to cache dynamic pages in file and reduce Database overload.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

cache