Monday 06 August 2007 6:53:44 am
Hello, i have a problem with the cache. I have a template which contain this code:
{if not(ezhttp('modif'))}
{def $modific = 0}
{else}
{def $modific = 1}
{/if}
{cache-block keys=array($uri_string, $i, $modific)}
{if $i|eq(0)}
Text A
{else}
{if $modific|eq(0)}
Text B
{else}
Text C
{/if}
{/if}
{/cache-block}
When i go to mywebsite, i have $i = 0 so I see the "text A", but when i click on a button (wich switch $i = 1 in database) i didn't see the "text B" but always "text A". When i disabled the cache, the site works perfectly , i see TextB. i try to add a cache block (in the example) but it doesnt work. Whats the problem? Thanks for help
|