PHP Classes
elePHPant
Icontem

Cache File - Part File: Cache PHP script output 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  
2011-01-18 (4 years ago) RSS 2.0 feedNot yet rated by the usersTotal: 571 All time: 4,993 This week: 1,415Up
Version License PHP version Categories  
cache-file-part 1.0GNU General Publi...5.0PHP 5, Files and Folders, Cache
Description Author  

This class can be used to cache content in files.

It can capture the current script output and store it in cache files if these do not exist already or they have already expired.

The class can just dump the contents of a cache file and exit if the cache file already exists and did not yet expire.

Picture of modbay
Name: modbay <contact>
Classes: 1 package by
Country: Lebanon Lebanon
Age: 31
All time rank: 28422 in Lebanon Lebanon
Week rank: 1504 Up4 in Lebanon Lebanon Down

Details provided by the author  
/**
 * cache class . used to cache a file or part of a file
 * @author Mohammad A.Baydoun <momito_bay@hotmail.com>
 * @copyright copyright (c) copyright 2011
 * @license GNU Public Licence (GPL)
 */

/**
 * @version 1.0  support file and part file caching
 * @example
 * ***file caching***
 * $cache=new cache();
 * $cache->start_cache();
 * place data in between example (html /php echo of your output)
 * $cache->end_cache();
 *
 *  * ***part file caching***
 * $cache=new cache();
 * $cache->start_cache($id); where $id is the part you want to cache it 
 * place data in between example (html /php echo of your output)
 * $cache->end_cache();
 */

/**
 * check the sample in order to see the class in action
 * please note that the folder upload should be 777;
 */
  Files folder image Files  
File Role Description
Files folder imageclass (1 file)
Plain text file readme.txt Doc. include some description of how to use the class
Accessible without login Plain text file sample_file_cache.php Example Example of file caching
Accessible without login Plain text file sample_nest_file_cache.php Example Caching File/Part File nested
Accessible without login Plain text file sample_part_file_cache.php Example Example of part file caching

  Files folder image Files  /  class  
File Role Description
  Plain text file cache.php Class Caching File/Part File with extra paramters for js cookie and session cases

 Version Control Unique User Downloads Download Rankings  
 0%Total:571All time:4,993
 This week:0This week:1,415Up