PHP Classes
elePHPant
Icontem

Cache variables: Cache variable values in PHP scripts

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Info   View files View files (2)   DownloadInstall with Composer Download .zip   Reputation   Support forum (2)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2009-12-19 (5 years ago) RSS 2.0 feedStarStarStarStar 62%Total: 1,620 This week: 1All time: 2,261 This week: 1,462Up
Version License PHP version Categories  
cache-variables 1.0GNU General Publi...5.0PHP 5, Cache, Code Generation
Description Author  

This class can be used to cache variable values in PHP scripts.

It can take the value of a variable and generate a cache file, if it does not exist already, that is PHP script that assigns the variable value.

The class can also load variable value from the cache file script if it exists and it is not expired.

The cache file may be invalidated by removing the cache file script.

Innovation Award  
PHP Programming Innovation award nominee
January 2010
Number 10
Sometimes it is necessary to store the results of an intensive processing job in a cache storage, so it can be reused many times without having to go through the same intensive processing job again.

This class provides a solution for storing the values of variables that result from a processing job.

It generates a PHP script file that assigns the values of the variables. This way it can be loaded much faster using a PHP opcode cache extension that may be available under the current PHP installation.

Manuel Lemos
Picture of Piotrek M
Name: Piotrek M <contact>
Classes: 3 packages by
Country: Poland Poland
Age: 21
All time rank: 114430 in Poland Poland
Week rank: 1125 Up32 in Poland Poland Down
Innovation award
Innovation award
Nominee: 1x

  Files folder image Files  
File Role Description
Plain text file cache.class.php Class cache
Accessible without login Plain text file example Example example use

 Version Control Unique User Downloads Download Rankings  
 0%Total:1,620All time:2,261
 This week:1This week:1,462Up
User Ratings User Comments (2)  
 All time
Utility:91%StarStarStarStarStar
Consistency:87%StarStarStarStarStar
Documentation:-
Examples:83%StarStarStarStarStar
Tests:-
Videos:-
Overall:62%StarStarStarStar
Rank:668
 
Simple and effective.
1 year ago (ivan castaņeda)
67%StarStarStarStar
simple and effective, worked nicely for me.
3 years ago (Tom Berend)
65%StarStarStarStar