Static cache filled for pages that are not in CachedURLArray

Author Message

Fred van Engen

Wednesday 12 April 2006 2:22:33 am

Using eZ Publish 3.7.3.

We've set up the eZ Publish forum and with static caching people would see the 'need to logon' message even if they're logged in. So we removed /forums* from CachedURLArray in the override settings (there are no _siteaccess_ settings for the static cache because that doesn't seem to work anyway).

The problem is that eZ Publish still generates /forums pages in the static cache.

[CacheSettings]
HostName=...removed...
CachedURLArray[]
CachedURLArray[]=/
CachedURLArray[]=/nieuws*
CachedURLArray[]=/multimedia*
AlwaysUpdateArray[]
CachedSiteAccesses[]
CachedSiteAccesses[]=nl
CachedSiteAccesses[]=en
MaxCacheDepth=5

I worked around this by adding a mod_rewrite rule that ignores /forums in the static cache so functionally it works now. However I would like to prevent the cache to be filled for forum pages because it slows down posting.

Looking at the sources and some debugging output, it seems that eZContentCacheManager::clearObjectViewCache is correctly called to invalidate object cache entries. This in turn calls eZStaticCache::generateNodeListCache but the latter doesn't check against CachedURLArray before writing to the static cache.

Is this a bug or some configuration error? Any hints?

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 21 2025 20:32:01
Script start
Timing: Jan 21 2025 20:32:01
Module start 'layout'
Timing: Jan 21 2025 20:32:01
Module start 'content'
Timing: Jan 21 2025 20:32:02
Module end 'content'
Timing: Jan 21 2025 20:32:02
Script end

Main resources:

Total runtime1.3759 sec
Peak memory usage4,096.0000 KB
Database Queries46

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0063 593.7422151.2422
Module start 'layout' 0.00630.0035 744.984436.7109
Module start 'content' 0.00991.3649 781.6953430.0078
Module end 'content' 1.37480.0010 1,211.70317.7813
Script end 1.3758  1,219.4844 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.2377160.0002
Check MTime0.00130.0961160.0001
Mysql Total
Database connection0.00110.079810.0011
Mysqli_queries1.338897.3041460.0291
Looping result0.00040.0321440.0000
Template Total1.340997.520.6704
Template load0.00200.148820.0010
Template processing1.338897.303520.6694
Template load and register function0.00020.013210.0002
states
state_id_array0.00120.090310.0012
state_identifier_array0.00210.155120.0011
Override
Cache load0.00160.1193200.0001
Sytem overhead
Fetch class attribute can translate value0.00080.061310.0008
Fetch class attribute name0.00060.041810.0006
XML
Image XML parsing0.00010.008510.0001
class_abstraction
Instantiating content class attribute0.00000.000310.0000
General
dbfile0.00070.0502100.0001
String conversion0.00000.000740.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
1content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
2content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 6
 Number of unique templates used: 5

Time used to render debug report: 0.0002 secs