Location: PHPKode > scripts > Cache output and objects > cache-output-and-objects/readme.txt
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:
    echo("put some code here!");

Basic Smarty syntax:

  {cache file="cache.sample.tmp" time="60"}
    put some code here!

Dragan Bosnjak
Return current item: Cache output and objects