Tuesday 29 April 2008 8:51:19 pm
Hi there folks, I have been struggling with EZ's static cache for about a day now. I can get it to 'work' with cached folders and index.html files all generated into my 'static' directory. But all the links in the static version of the site point back to the dynamic (PHP) site (complete with 'index.php/eng'). How do I get them to reference other .html files also in the 'static' directory? I have spent the afteroon searching the forum and reading all the online docs I could find (That's what EZ has btw, that Plone for example doesn't - *really* good docs~ :-), but still cannot find a fix. Can anyone help? Messing with Apache rewrite rules *won't* work in my circumstance as the cached .html files will need to be copied to three separate webservers. For performance reasons we *don't* want any public access to the dynamic site. The dynamic PHP install and admin siteaccess remains behind our LAN to be used only by our company staff. When content updates are made, the cache will get regenerated locally (behind the LAN) via makestaticcache.php and then subsequently rsynced to our separate servers.
Here is my setup: ================= It is a non Virtual Host setup, access is simply: mydomain.co.nz/ezpublish/index.php/mysiteaccess
- EZ 4.0
- PHP 5.2.5
- Apache 2.2.8
- MySQL 4.1
- Linux (FC5)
- Firefox 2.0.0.14
Cache is built thus: ====================
#> php ./bin/php/makestaticcache.php -f -s mysiteaccess
The 'static' directory is outside EZz's directory structure: /var/www/htdocs/cms-deploy/ezpublish/static/
Here are my ini settings: ========================= settings/override/staticcache.ini.append.php
[CacheSettings]
HostName=mydomain.co.nz/ezpublish/index.php
StaticStorageDir=/var/www/htdocs/cms-deploy/ezpublish/static/
MaxCacheDepth=5
CachedURLArray[]=/Products
CachedURLArray[]=/Products*
CachedURLArray[]=/Solutions
CachedURLArray[]=/Solutions*
CachedURLArray[]=/Training
CachedURLArray[]=/Training*
CachedURLArray[]=/Support
CachedURLArray[]=/Support*
CachedURLArray[]=/Getting-started
CachedURLArray[]=/Getting-started*
CachedURLArray[]=/Company
CachedURLArray[]=/Company*
# A list of locations that will be updated whenever an object is published. You
# can NOT use a wildcard here.
AlwaysUpdateArray[]
AlwaysUpdateArray[]=/
settings/override/site.ini.append.php
...
[ContentSettings]
StaticCache=enabled
...
Thanks very much for your time :-)
Russell Michell, Wellington, New Zealand.
We're building! http://www.theruss.com/blog/
I'm on Twitter: http://twitter.com/therussdotcom
Believe nothing, consider everything.
|