Cache problem / question

Author Message

Matt the Dwarf

Tuesday 16 May 2006 12:01:16 am

Hey there,

I've have a site setup using ezPublish and am keen to sort out the caching of content and templates to improve load times.

I had the site caching 'turned on' for a period last week and it improved things dramatically, however, the way i've had it setup, means that some content is dynamic depending on where you go in the site and was not refreshing (so we had to turn it off).

My question is, can certain templates be 'immune' from template caching? If so, how do I do it?

I understand a bit of this stuff, but I didn't build the site and my programmer can spend minimal hours on it at the moment.

Cheers
Matt

Alexandre Cunha

Tuesday 16 May 2006 12:45:06 am

Not sure if this helps, but have you search in the manual?
Take a look on this: http://ez.no/doc/ez_publish/technical_manual/3_6/reference/template_functions/miscellaneous/cache_block

http://AlexandreCunha.com

André R.

Tuesday 16 May 2006 2:06:24 am

in the top of everey node template, you can set view cache timeout in seconds:
{set-block scope=root variable=cache_ttl}500{/set-block}

If you set it to 0 the page (node content) will be 100% dynamic

Here is my site.ini settings btw:

[ContentSettings]
ViewCaching=enabled
EditDirtyObjectAction=usecurrent

[TemplateSettings]
Debug=disabled
ShowXHTMLCode=disabled
ShowUsedTemplates=disabled
TemplateCache=enabled
TemplateCompile=enabled
TemplateOptimization=enabled
TemplateCompression=disabled
NodeTreeCaching=disabled

A good thread on php accelerators and apache vs others:
http://ez.no/community/forum/suggestions/memcache#msg98952

the ultimate performance thread:
http://ez.no/community/forum/general/ez_publish_performance_optimisation_faq

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

Matt the Dwarf

Tuesday 16 May 2006 7:54:41 pm

<i>in the top of everey node template, you can set view cache timeout in seconds:
{set-block scope=root variable=cache_ttl}500{/set-block}

If you set it to 0 the page (node content) will be 100% dynamic</i>

This fixed the problem. Thanks for your help on this one.
Cheers
Matt

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