Skip to content

xlaming/phpcacher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PHPCacher

  • Simple Advanced PHP Caching System
  • Version: 1.1

Usage:

    1. First you need to initialize the class
    1. Now you need to set the directory
    1. Finally you load the file

Functions:

PHPCacher::setDir($dir)

(string) Set the main directory that will be stored all files

PHPCacher::setMinify($value) - OPTIONAL

(bool) Enable or disable minify system (HTML, JavaScript and CSS)

PHPCacher::setExpiration($value) - OPTIONAL

(int) Set an expiration time (in seconds) that will be used in caching system

PHPCacher::loadFile($name, $ext)

(string) - (string) Used to load files, $name is the file name and $ext is the extension

Note:

  • Automatically when a file is changed by the developer, it will force the user update the file cached in their browser.

Examples:

Releases

No releases published

Packages

No packages published