PHP Classes

Really Simple Content Cache: Cache content in files

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in Bookmark in
  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 (7 years ago) RSS 2.0 feedNot enough user ratingsTotal: 673 All time: 4,489 This week: 1,131Up
Version License PHP version Categories  
reallysimplecontentc 0.1GNU General Publi...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: 36
All time rank: 2633166 in Germany Germany
Week rank: 1531 Up85 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:673All time:4,489
 This week:0This week:1,131Up
 User Comments (1)  
Simple and useful, well done.
7 years ago (lecterror)