ViewCaching and TemlpateCache

Author Message

Christian Johansen

Thursday 27 April 2006 4:31:12 am

Where do I set the expiry for ViewCaching and TemlpateCache? It seems my frontpage will never update, even when it is 40 hours since I published an article... I am not using static cache on the page.

Stuart Fenton

Monday 01 May 2006 1:29:52 pm

You can set the expiry in the same line as you use the cache block.

Example (expire after 120s):

{cache-block expiry=120}
    ... tpl code
{/cache-block}

Have a look at:
http://ez.no/products/ez_publish/documentation/development/kernel/cache_block_optimization

Regards
Fats

-- Stuart

stuart@grandmore.com
http://www.grandmore.com

Christian Johansen

Tuesday 09 May 2006 4:07:09 am

Ok, so do you mean that I should wrap a cache-block around my {$module_result.content} in pagelayout.tpl?

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