PHP Classes

cache_TS: Cache the output of PHP script in files

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 937 All time: 3,828 This week: 488Up
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
Innovation award
Innovation award
Nominee: 1x

 

  Files folder image Files (5)  
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

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:937
This week:0
All time:3,828
This week:488Up