replaceBlockfile() (Previous) (Next) setCallbackFunction()

View this page in Last updated: Mon, 02 Jul 2007
English | Dutch | French | German | Hungarian | Japanese | Polish | Russian | Spanish | Plain HTML

setCacheRoot()

setCacheRoot() -- Sets the directory to cache "prepared" templates in.

Opis

Sets the directory to cache "prepared" templates in, the directory should be writable for PHP.

The "prepared" template contains an internal representation of template structure: essentially a serialized array of $_blocks, $_blockVariables, $_children and $_functions, may also contain $_triggers. This allows to bypass expensive calls to HTML_Template_Sigma::_buildBlockVariables() and especially HTML_Template_Sigma::_buildBlocks() when reading the "prepared" template instead of the "source" one.

The files in this cache do not have any TTL and are regenerated when the source templates change.

Parametr

string $root

directory name

Wyjątki

throws no exceptions thrown

Uwagi

Ta funkcja nie może być wywołana statycznie.

replaceBlockfile() (Previous) (Next) setCallbackFunction()

Download Documentation Last updated: Mon, 02 Jul 2007
Do you think that something on this page is wrong? Please file a bug report or add a note.
User Notes:
There are no user contributed notes for this page.