PHP Classes
Icontem

Class: Cache output and objects


  Search   All class groups All class groups   Latest entries Latest entries   Top 10 charts Top 10 charts   Newsletter Newsletter   Blog Blog   Forums Forums   Help FAQ Help FAQ  
  Login   Register  
Recommend this page to a friend! ReTweet ReTweet Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Dragan Bošnjak  >  Cache output and objects  >  Download  >  Support forum Support forum (1)  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: Cache output and objects Support forum
Base name: cache
Description: Cache the output of PHP scripts in files
Related top rated classes:
Version: 1.0
Required PHP version: 4.2
License: Custom (specified in a license file)
All time users: 2382 users
All time rank: 1042
Week users: 9 users
Week rank: 866
 
  Author   Group folder image Groups   Detailed description  
  Rate classes User ratings   Applications   Files Files  

Author

Picture of Dragan Bošnjak
Name: Dragan Bošnjak <e-mail contact>
Published packages: 2 Browse this author's classes Browse this author's classes
Country: Croatia Croatia - PHP jobs in Croatia
Home page: ???
Age: 26
All time rank: 622
Week rank: 669

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

Detailed description

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.

User ratings

Ratings
Utility
Consistency
Documentation
Examples
Tests
Videos
Overall
Rank
All time:
Good (95.0%)
Good (92.5%)
Sufficient (77.5%)
Good (80.0%)
-
-
Sufficient (72.5%)
104
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

File Role Description
Plain text file cache.php Class Main file
Files folder image smarty
  Plain text file block.cache.php Aux. Smarty plugin
  Plain text file test_06_smarty.tpl Data Templage for smarty plugin example
Plain text file test_01_hello_world.php Example Hello World
Plain text file test_02_nested.php Example Example of nested blocks
Plain text file test_03_objects.php Example Caching objects
Plain text file test_04_quotes.php Example Test of serialization with special characters
Plain text file test_05_benchmark.php Example Benchmark example
Plain text file test_06_smarty.php Example Smarty plugin example
Plain text file license.txt Lic. License file
Plain text file readme.txt Doc. Read me
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.

 
  Advertise on this site Advertise on this site   Site map Site map   Statistics Statistics   Site tips Site tips   Privacy policy Privacy policy   Contact Contact  

For more information send a message to :
info at phpclasses dot org.
Copyright (c) Icontem 1999-2009 PHP Classes - PHP Class Scripts
  PHP Book Reviews - Reviews of books and other products