Friday 14 October 2005 7:08:48 am
Hi, using eZ 3.7.0 here. I have been whacking my head all day to make static cache work, with discouraging results. I followed to the letter all the instructions and info at the following urls... http://ez.no/download/changelogs/ez_publish_3_6/new_features/static_caching_of_content http://ez.no/community/forum/developer/staticcache_makestaticcache_php_and_siteaccess http://ez.no/community/forum/install_configuration/3_6_static_cache_for_siteaccesses http://ez.no/community/forum/install_configuration/static_cache_publishing_doesn_t_update_static_cache and many others I have found on the site, to no avail. I have 2 siteaccesses, one for public view, with no login-protected areas whatsoever, and a default admin siteaccess. I want all the pages from the user siteaccess to be statically cached, and none from the admin siteaccess. After lots of changes and copying / moving staticcache.ini.append.php back and forth between the override dir and the public siteaccess dir, the closest I have gotten to have the static cache work, is for the script to generate the static cache for the public home page. But then, it uses the same home page both for the public site and for the admin site, effectively blocking me from entering the admin site. I am using the "only one siteaccess" aprt of the steps as, in fact, I am only interested in caching the public site. with the current settings -- which I think should be the correct ones for my case -- cache is not generated at all : override/staticcache.ini.append.php :
[CacheSettings]
HostName=localhost
StaticStorageDir=static MaxCacheDepth=4
# A list of url's to cache. You can use the * wildcard to include a whole
# subtree.
CachedURLArray[] CachedURLArray[]=/*
# A list of site accesses to generate static content for CachedSiteAccesses[]=corporate_user
# A list of locations that will be updated whenever an object is published. You
# can NOT use a wildcard here.
AlwaysUpdateArray[] AlwaysUpdateArray[]=/ corporate_user/site.ini.append.php:
[ContentSettings]
TranslationList=
#ViewCaching=disabled
#StaticCache=disabled
ViewCaching=enabled StaticCache=enabled I am calling the makestaticcache.php from CLI like this: bin/php/makestaticcache.php -s corporate_user and I get as output the list of nodes of which I suppose it's generating the cache. unfortunately, the static dir is empty. it has correct permissions to be written, and indeed it has been written to when following Lukas 's advice found here ... http://ez.no/community/forum/install_configuration/static_cache_publishing_doesn_t_update_static_cache but that caused also the admin site being cached and the reachability problem I found. Anyone can help me out ?? I have no clues. thanks
|