Share » Forums » Setup & design » Cache not cleared on start page when...

Cache not cleared on start page when publish

Cache not cleared on start page when publish

Tuesday 13 December 2005 1:22:12 am - 4 replies

Author Message

Paul Forsyth

Tuesday 13 December 2005 1:36:19 am

If you disable the cache for the start page perhaps consider adding cache-blocks in those places that dont need to change? That way you can retain the dynamic fetch but cache everything else?

paul

Xavier Dutoit

Tuesday 13 December 2005 1:40:32 am

Doesn't work with the smart cache ?

if you enable the smart cache and says that everytime a new article (or whatever is published on the home page), you clear the cache of the home page, doesn't it work ?

Just remember that you have to put objects id, not node ids.

X+

http://www.sydesy.com

Ekkehard Dörre

Tuesday 13 December 2005 2:41:34 am

@Paul dynamic fetch is too heavy, but cache for 10 min is a possibility but not very elegant.

@Xavier
From
http://ez.no/products/ez_publish_cms/documentation/incoming/smart_viewcache_cleaning_system

[forum_reply]
DependentClassIdentifier[]
DependentClassIdentifier[]=folder
ClearCacheMethod=clear_object_and_relating_objects_caches
MaxParents=3;

#If 'Forum folder' has object_id=56 for example then the rule above can be more hard by adding next lines:
ObjectFilter[]
ObjectFilter[]=56

looks like a solution, but there is an unique fetch in viewmode full in folder and nothing related. Does this work, too?

Thanks, ekke

http://www.coolscreen.de - Over 40 years of certified eZ Publish know-how: http://www.cjw-network.com
CJW Newsletter: http://projects.ez.no/cjw_newsletter - http://cjw-network.com/en/ez-publ...w-newsletter-multi-channel-marketing

Paul Forsyth

Tuesday 13 December 2005 3:07:33 am

Maybe we need a template operator to clear the cache of a node. The eZ api has this. So, in the pagelayout something like:

{if $some_condition}
{clear_cache_object(X)}
{/if}

may work if something can be tested.

Having a delay of 10 minutes isnt too bad. It means for most hits the cache will be in place and is fast. Fine tuning the time would be key.

btw, i added a relevant enhancment some time ago:

http://ez.no/community/bugs/smarter_viewcache

Paul

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu