cache expire / disable doesn't work

Author Message

Brendan Pike

Tuesday 11 May 2004 8:52:10 pm

I am using 3.3-4 and in my pagelayout.tpl files I have used the following cache blocks:

{cache-block keys=array('my_cache_block_2',$uri_string,$current_user.role_id_list|implode(',')) expiry=86400}

Which have helped speed the site a good deal. But I have several templates that used ezmatrix datatypes and I can not allow caching on those or they stop working. I have tried adding both

{set-block scope=root variable=cache_ttl}0{/set-block}

and even

{cache-block expiry=0}
code
{/cache-block}

to the attribute tpl for matrix rows and even to the edit.tpl but they still get cached. :( Also worth noting is that if I edit from the admin area everything works fine.
Can anyone shed any light as to why this happens?

www.dbinformatics.com.au

We are always interested in hearing from experienced eZ PHP programmers and eZ template designers interested in contract work.

Willie Seabrook

Friday 14 May 2004 10:33:11 pm

Are you sure you are adding the cache exclusion code to the correct template? You may have another template for the matrix that is overriding it somewhere.

Alternatively:

{cache-block attributes etc...}


{/cache-block}

where ez matrix appears

{another cache-block attributes etc...}


{/cache-block}

should work.

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.