staticcache, makestaticcache.php and siteaccess

Author Message

Geraint Edwards

Thursday 30 June 2005 12:22:50 pm

In implementing the staticcache I "rediscovered" bug 6656 (http://ez.no/bugs/view/6656) and have been trying to get my head around what's going on.

In essence the heart of this bug is that makestaticcache.php doesn't read staticcache.ini{.append.php} files from siteaccess ini directories (apart from the DefaultAccess one) - the same problem arises with cache.php.

After quite a bit of experimentation and hacking it appears that you must specify the CachedSiteAccesses in the setting/override.staticcache.ini.append.php since they are ignored in the siteaccess ini file.

I'd really like to use the siteaccess ini files to their full in order to have different CachedURLArray and AlwaysUpdateArray values for some siteaccesses. This is not possible with the current code.

I have created modified versions of makestaticcache.php and ezstaticcache.php that allow me to cycle through the CachedSiteAccesses specified in the override directory ini file and use the CachedURLArray and AlwaysUpdateArray values from the specific siteaccess files together with any general values specified in the override directory.

If there is interest in these scripts then I'll add them as hacks in the contributions section for further testing.

Geraint

p.s. Georg - you may be interested to know that these modified scripts allow me to run two virtual server sites using the same DB without repeating the same content structure on both in the static cache.

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