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.
|