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.

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

eZ debug

Timing: Jan 30 2025 21:43:49
Script start
Timing: Jan 30 2025 21:43:49
Module start 'layout'
Timing: Jan 30 2025 21:43:49
Module start 'content'
Timing: Jan 30 2025 21:43:49
Module end 'content'
Timing: Jan 30 2025 21:43:49
Script end

Main resources:

Total runtime0.0256 sec
Peak memory usage4,096.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0056 588.0078151.1953
Module start 'layout' 0.00560.0040 739.2031220.6406
Module start 'content' 0.00960.0143 959.8438997.8828
Module end 'content' 0.02390.0016 1,957.726633.9922
Script end 0.0255  1,991.7188 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002911.3778140.0002
Check MTime0.00124.5014140.0001
Mysql Total
Database connection0.00072.856810.0007
Mysqli_queries0.00228.762330.0007
Looping result0.00000.046610.0000
Template Total0.00124.510.0012
Template load0.00083.122410.0008
Template processing0.00041.375310.0004
Override
Cache load0.00062.158010.0006
General
dbfile0.00072.762780.0001
String conversion0.00000.035440.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs