PHP Classes

gCache: Capture and cache Web page content

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in Bookmark in
  Info   View files View files (4)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2008-11-16 (6 years ago) RSS 2.0 feedNot enough user ratingsTotal: 773 All time: 4,067 This week: 1,401Up
Version License PHP version Categories  
gcache 3.0Public Domain3.0Files and Folders, Cache
Description Author  

This class can be used to capture and cache Web page content.

It can store cached content in files of a given directory. It uses an OS independent file locking to prevent that simultaneous attempts to update the cache files corrupt them.

First it checks whether the cache file exist and has not expired. In that case it retrieves the cache content into a class variable.

If the cache does not exist or has expired, the class can start capturing the output of the current script. When the script is done, the class can store the captured content in the cache file.

Picture of Cesar D. Rodas
Name: Cesar D. Rodas is available for providing paid consulting. Contact Cesar D. Rodas .
Classes: 37 packages by
Country: Paraguay Paraguay
Age: 27
All time rank: 71 in Paraguay Paraguay
Week rank: 28 Down1 in Paraguay Paraguay Equal
Innovation award
Innovation award
Nominee: 24x

Winner: 5x

  Files folder image Files  
File Role Description
Files folder imagecache (1 file)
Plain text file gCache.php Class Main class
Accessible without login Plain text file test1.php Example Test File
Accessible without login Plain text file test2.php Example Testing cache with parts of a page

  Files folder image Files  /  cache  
File Role Description
  Accessible without login Plain text file .dummy Data Dummy file for create the "cache" folder

 Version Control Unique User Downloads Download Rankings  
 0%Total:773All time:4,067
 This week:0This week:1,401Up