Login   Register  
PHP Classes
elePHPant
Icontem

File: readme.txt

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Dragan Bo?njak  >  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: 2007-03-28 09:41
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