PHP Classes
elePHPant
Icontem

gCache: Capture and cache Web page content

Recommend this page to a friend!
  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 (10 years ago) RSS 2.0 feedNot enough user ratingsTotal: 784 All time: 4,259 This week: 794Up
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.

  Performance   Level  
Name: Cesar D. Rodas <contact>
Classes: 39 packages by
Country: Paraguay Paraguay
Innovation award
Innovation award
Nominee: 25x

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:784
This week:0
All time:4,259
This week:794Up