Tuesday 31 May 2005 3:11:07 am
Hello,
I'm trying to set up Static Caching, but I cant have it working with our siteaccesses for the moment. I have followed these instructions : http://www.ez.no/ez_publish/download/changelogs/ez_publish_3_6/new_features/static_caching_of_content But when I run "php bin/php/makestaticcache.php -s fr", or "php bin/php/makestaticcache.php -f", no files are generated and I have following errors in Apache's logs :
[Tue May 31 12:18:50 2005] [error] [client 192.168.100.86] File does not exist: /var/www/webdev/ez/fr [Tue May 31 12:18:50 2005] [error] [client 192.168.100.86] File does not exist: /var/www/webdev/ez/en
It seems to try to write static cache on a bad location. Static files should be writtein in /var/www/webdev/ez/static. I have created this directory with needed permissions, and created subfolders "fr" and "en". Here is my configuration. I have two siteaccess : "fr" and "en" DocumentRoot is set to /var/www/webdev/ez
---------------------
.htaccess
---------------------
RewriteEngine On RewriteRule !\.(gif|jpe?g|png|css|js|html)|var(.+)storage.pdf(.+)\.pdf$ index.php
#STATIC CACHING
RewriteCond /var/www/webdev/ez/static/en/index.html -f
RewriteRule ^/$ /static/en/index.html [L]
RewriteCond /var/www/webdev/ez/static/en/index.html -f RewriteRule ^$ /static/en/index.html [L]
RewriteCond /var/www/webdev/ez/static/fr/index.html -f
RewriteRule ^/$ /static/fr/index.html [L]
RewriteCond /var/www/webdev/ez/static/fr/index.html -f RewriteRule ^$ /static/fr/index.html [L]
RewriteCond %{REQUEST_METHOD} !^POST$
RewriteCond /var/www/webdev/ez/static$1/index.html -f RewriteRule ^(.*)$ /static$1/index.html [L]
--------------------
settings/override/site.ini.append.php :
--------------------
[ContentSettings] StaticCache=enabled
--------------------
settings/siteaccess/en/staticcache.ini.append.php :
--------------------
[CacheSettings] StaticStorageDir=static/en
--------------------
settings/siteaccess/fr/staticcache.ini.append.php :
--------------------
[CacheSettings] StaticStorageDir=static/fr
--------------------
settings/override/staticcache.ini.append.php
--------------------
[CacheSettings]
HostName=localhost MaxCacheDepth=4
# A list of url's to cache
CachedURLArray[] CachedURLArray[]=/*
AlwaysUpdateArray[]
AlwaysUpdateArray[]=/ AlwaysUpdateArray[]=/products
CachedSiteAccesses[]
CachedSiteAccesses[]=en CachedSiteAccesses[]=fr Thanks for any help
|