Skip to the content
Documentation

variable scope inside cache block

No ratings yet

maybe obvious, but if you write

{cache-block}
  {def $nose="black"}
{/cache-block}
{$nose}

it will print "black" the first time you load a page,
and nothing the second time you load it
iow, variables are always scoped inside a cache-block.
$2c,
*pike