Forums / Install & configuration / static cache gets all regenerated by publishing - eZ 4.0.0

static cache gets all regenerated by publishing - eZ 4.0.0

Author Message

Manuel Perez

Thursday 27 March 2008 8:08:52 am

Hi,

I have set up the static cache for a site with multiple site accesses and a lot of urls in an installation of eZ 4.0.0. The problem is that everytime I update one node, the whole static cache gets regenerated which takes a lot of time because of the large number of nodes. Below the configuration that I have:

In settings/override/staticcache.ini.append.php


[CacheSettings]
HostName=mysite
StaticStorageDir=static
MaxCacheDepth=7

# A list of url's to cache. You can use the * wildcard to include a whole
# subtree.
CachedURLArray[]=/*

# A list of site accesses to generate static content for
CachedSiteAccesses[]
CachedSiteAccesses[]=english
CachedSiteAccesses[]=deutsch
CachedSiteAccesses[]=italiano


# A list of locations that will be updated whenever an object is published. You
# can NOT use a wildcard here.
#AlwaysUpdateArray[]
#AlwaysUpdateArray[]=/

#AlwaysUpdateArray[]
#AlwaysUpdateArray[]=/
#AlwaysUpdateArray[]=/products

For the siteaccess in english (settings/siteaccess/english/staticcache.ini.append.php) :


[CacheSettings]
#HostName=mysite
StaticStorageDir=static/english
#MaxCacheDepth=2

# A list of url's to cache. You can use the * wildcard to include a whole
# subtree.
CachedURLArray[]=/*

# A list of site accesses to generate static content for
CachedSiteAccesses[]
CachedSiteAccesses[]=english

# A list of locations that will be updated whenever an object is published. You
# can NOT use a wildcard here.
#AlwaysUpdateArray[]
#AlwaysUpdateArray[]=/

Everything in settings/staticcache.ini is commented.

How can I make that only the node that I edit gets refreshed and not everything?

Thanks in advance.

Kristof Coomans

Wednesday 07 May 2008 2:41:00 am

Hi Manuel

The nodes that get their static cache regenerated are the same as the ones that get their content view cache cleared. Please check your view cache settings if you feel that too many caches get regenerated. More information about view caching at http://ez.no/doc/ez_publish/technical_manual/4_0/features/view_caching

Good luck!

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org