PHP Classes

cache_TS: Cache the output of PHP script in files

Recommend this page to a friend!
  Info   View files View files (5)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 937 This week: 1All time: 3,826 This week: 560Up
Version License PHP version Categories
cache_ts 1GNU Lesser Genera...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: 37
All time rank: 3708 in Poland Poland
Week rank: 416 Down12 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:937
This week:1
All time:3,826
This week:560Up