PHP Classes

File: readme.txt

Recommend this page to a friend!
  Classes of n/a   Cache output and objects   readme.txt   Download  
File: readme.txt
Role: Documentation
Content type: text/plain
Description: Read me
Class: Cache output and objects
Cache the output of PHP scripts in files
Author: By
Last change:
Date: 17 years ago
Size: 602 bytes
 

Contents

Class file image Download
Cache - cache php output and objects This class can cache php text output and objects to files. Constructor for cache blocks is very simple and it requires only one "where" loop (see examples for details). You can also nest multiple blocks, with different expiration times. Cache class also includes easy to use Smarty plugin. Basic PHP syntax: while($cache->save("cache.sample.tmp",60)) { echo("put some code here!"); } Basic Smarty syntax: {cache file="cache.sample.tmp" time="60"} put some code here! {/cache} Dragan Bosnjak http://wreza.bloger.hr