Login   Register  
PHP Classes
elePHPant
Icontem

cache_TS: Cache the output of PHP script 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 (5)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2007-08-23 (7 years ago) RSS 2.0 feedNot enough user ratingsTotal: 849 This week: 2All time: 3,793 This week: 966Up
Version License PHP version Categories  
cache_ts 1GNU Lesser General Publ...4.0Files and Folders, Cache
Description Author  

This class can be used to cache the output of PHP script in files.

First it checks the cache file of a given cache key.

If the cache file exists and it has not expired, the class outputs the contents of the cache file.

If the cache file does not yet exist or it has expired, the class starts capturing the output of the script and stores it in the cache file.

The directory where the cache files are stored and the cache file expiry time are configurable parameters.

Picture of Jacek Wloka
Name: Jacek Wloka <contact>
Classes: 6 packages by
Country: Poland Poland
Age: 27
All time rank: 3546 in Poland Poland
Week rank: 649 Down19 in Poland Poland Down
Innovation award
Innovation award
Nominee: 1x

  Files folder image Files  
File Role Description
Accessible without login Plain text file clean_up_cache.php Example clean up cache
Accessible without login Plain text file example_1.php Example example 1
Accessible without login Plain text file example_2_SQL.php Example example 2 sql
Accessible without login Plain text file example_test.sql Data example database sql
Plain text file cache_ts.php Class class cache_TS

 Version Control Unique User Downloads Download Rankings  
 0%Total:849All time:3,793
 This week:2This week:966Up