Coder Profile - Show off your skills, get a coder profile.
 
 
 
The Author
VBAssassin
Scott Thompson
Send A Message
Rating
8.00
out of 10
( 2 Ratings )
Please login to rate source codes.

Click here to register a free account with us.
General Details
PHP (Hypertext Preprocess...
Posted 122 Days Ago
785 Views
Received 2 Ratings
More Codes By This Author
Breadcrumb Function
Remove Transparency
Snake Game
Flip an image using gd2 f...
PHP - Collections Class
Articles By This Author
Null Byte Poison - How it...
Versioning Your Applicati...
When to use OOP in PHP
Preventing raw PHP leaks...
All VB6 Global Functions...

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.
Page 1 of 1
More "PHP (Hypertext Preprocessor)" Source Codes By This Author
Recently Posted "PHP (Hypertext Preprocessor)" Source Codes
Recently Rated "PHP (Hypertext Preprocessor)" Source Codes
 
 
Part of the MyPingle Network
Make A Donation :: Our Affiliates :: Affiliation Request :: Contact Me
Development Blog :: Terms & Conditions :: Privacy Policy :: Documents
Version 1.41.00
Copyright © 2007 - 2008, Scott Thompson, All Rights Reserved