|
General Details
|
|
PHP (Hypertext Preprocess...
|
|
Posted 122 Days Ago
|
|
785 Views
|
|
Received 2 Ratings
|
|
Simple Page Caching
Description
Caches dynamic pages and allows you to customize the cache on a per page basis. Each page manages its own cache file and replaces it automatically after x amount of time (which you set) along with other settings such as the cache expire time, extension, and the ability to enable and disable on a per page basis.
Technical
Just include the block of caching code in your scripts and change the settings accordingly for each page:
define('CACHE_ENABLED', true);
define('CACHE_EXTENSION', '.cache');
define('CACHE_EXPIRE_HOURS', 1);
The setting names pretty much explain the settings and what they do. I will explain what CACHE_EXTENSION means... simple enough... the file that needs to be cached will have a cached version of it created with the extension you enter in the setting.
Source Code
Comments
| Please login to post comments. |
More "PHP (Hypertext Preprocessor)" Source Codes By This Author
Recently Posted "PHP (Hypertext Preprocessor)" Source Codes
Recently Rated "PHP (Hypertext Preprocessor)" Source Codes
|