Login   Register  
PHP Classes
elePHPant
Icontem

Cache output and objects

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

  Author  
Picture of Dragan Bo?njak
Name: Dragan Bo?njak <e-mail contact>
Packages: 2 Browse all classes by Dragan Bo?njak Browse all classes by
Country: Croatia Croatia - PHP jobs in Croatia
Age: 30
All time rank: 6091 in Croatia Croatia
Week rank: 1460 Down2 in Croatia Croatia Down


  Detailed description   Download .zip .tar.gz  
This class can be used to cache the output of PHP scripts in files.

It checks if a given cache file exists and is updated. If it is updated, it outputs the cached content. Otherwise it starts capturing the output of the current script.

When the script is done outputting the content to be cached, it should call the class again to check the cache. Then the class updates the captured output.

The class may cache nested scripts that output several blocks of content stored in different cached files and with eventually different expiration times.

This package also comes with a plug-in to cache output of pages generated with Smarty templates.

The class may also cache the serialized values of objects and other types of variables.

  Classes of Dragan Bo?njak  >  Cache output and objects  >  Download .zip .tar.gz  >  Support forum Support forum (2)  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: Cache output and objects
Base name: cache
Description: Cache the output of PHP scripts in files
Version: 1.0
PHP version: 4.2
License: Custom (specified in a license file)
All time users: 3394 users
All time rank: 897
Week users: 1 user
Week rank: 2150 Down
 
  Groups   Rate classes User ratings   Applications   Files Files  

  Groups  
Group folder image Cache Classes for managing cached pages View top rated classes
Group folder image Templates Template processing engines and components View top rated classes


  User ratings  
Ratings
Utility
Consistency
Documentation
Examples
Tests
Videos
Overall
Rank
All time:
Good (88.6%)
Good (86.4%)
Sufficient (72.7%)
Sufficient (79.5%)
-
-
Sufficient (68.2%)
296
Month:
Not yet rated by the users

  Applications that use this class  
No application links were specified for this class.
Add link image If you know an application of this package, send a message to the author to add a link here.
  Files folder image Files  
File Role Description
Files folder imagesmarty (2 files)
Plain text file cache.php Class Main file
Accessible without login Plain text file test_01_hello_world.php Example Hello World
Accessible without login Plain text file test_02_nested.php Example Example of nested blocks
Accessible without login Plain text file test_03_objects.php Example Caching objects
Accessible without login Plain text file test_04_quotes.php Example Test of serialization with special characters
Accessible without login Plain text file test_05_benchmark.php Example Benchmark example
Accessible without login Plain text file test_06_smarty.php Example Smarty plugin example
Accessible without login Plain text file license.txt Lic. License file
Accessible without login Plain text file readme.txt Doc. Read me

  Files  /  Files folder image smarty  
File Role Description
  Accessible without login Plain text file block.cache.php Aux. Smarty plugin
  Accessible without login Plain text file test_06_smarty.tpl Data Templage for smarty plugin example

Download all files: cache.tar.gz cache.zip
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.