Forums / Developer / Static cache

Static cache

Author Message

Mark Hofleitner

Thursday 24 September 2009 12:00:48 am

Hello,

we are using ez Publish 4.0.0.

I tried to run the makestaticcache.php script with the following parameters:

php bin/php/makestaticcache.php -s oursite

Our /settings/override/staticcache.ini.append.php file has the following entries:

[CacheSettings]
HostName=localhost
StaticStorageDir=static
MaxCacheDepth=3
CachedURLArray[]=/*
CachedSiteAccesses[]
CachedSiteAccesses[]=oursite
AlwaysUpdateArray[]
AlwaysUpdateArray[]=/
CronjobCacheClear=disabled

In the ini-file /settings/override/site.ini.append.php we already set

StaticCache=enabled

The makestaticscript.php then created a folder "oursite" in \static but there are no files in it.

Regards,
Mark

Ivo Lukac

Thursday 24 September 2009 3:25:26 am

The most important thing here is the HostName setting. Script uses this setting to connect to web. So question: is your site accessible from shell with http://localhost/ ?

http://www.linkedin.com/in/ivolukac
http://www.netgen.hr/eng/blog
http://twitter.com/ilukac

Mark Hofleitner

Monday 28 September 2009 3:48:41 am

No. Our site is not accesible with localhost.

I just tried the configuration with our ip address

HostName=10.54.2.98

but it's still the same effect.