Login   Register  
PHP Classes
elePHPant
Icontem

Really Simple Content Cache: Cache content in files

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 (3)   DownloadInstall with Composer Download .zip   Reputation   Support forum (2)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2007-10-03 (6 years ago) RSS 2.0 feedNot enough user ratingsTotal: 670 All time: 4,379 This week: 1,837Up
Version License PHP version Categories  
reallysimplecontentc 0.1GNU General Public Lice...5.0PHP 5, Cache
Description Author  

This class can be used to cache content in files.

It can check if a given cache file exists and it has not expired. In that case it returns the cached content stored in the cache file.

If the cache file does not exist or the cached content has expired, the cache file may be refreshed with new content.

The class may also invalidate cached content by removing the respective file if it exists.

The cache expiry time and the cache file name extension are configurable details.

Picture of Rob Searles
Name: Rob Searles <contact>
Classes: 1 package by
Country: Germany Germany
Age: 35
All time rank: 2558166 in Germany Germany
Week rank: 1863 Up91 in Germany Germany Up

  Files folder image Files  
File Role Description
Accessible without login Plain text file index.php Example Demo of the ReallySimpleContentCache class for the simplest usage
Accessible without login Plain text file index2.php Example Demo for the ReallySimpleContentCache class, more advanced usage
Plain text file ReallySimpleContentCache.php Class Class file for the ReallySimpleContentCache class

 Version Control Unique User Downloads Download Rankings  
 0%Total:670All time:4,379
 This week:0This week:1,837Up
 User Comments (1)  
 
Simple and useful, well done.
6 years ago (lecterror)
70%StarStarStarStar