Cache cleared when adding content?

Author Message

Nicklas Lundgren

Friday 28 November 2003 1:32:50 am

Hi,
I have noticed that in 3.23 all of the view-cache is cleared when I add/delete something in the admin-interface, or add a simple message to a forum.

This is really slowing down the system a lot, since the cache has to be reloaded all the time.

I guess the problem is in kernel/content/edit.php where a block starting with
if ( $viewCacheEnabled )
seems to take care of clearing the viewcache when adding something to the system. However, it doesn´t seem right that all of the cached files are erased all the time...

All ideas/suggestions are welcome!

Kind regards,
Nicklas Lundgren

Claus Jensen

Friday 28 November 2003 4:32:37 am

Hi,
Is this true? I have just upgraded a site to the 3.2-3 and its up for being released to the public. This does not sound as the appropriate behaviour for a cache??!!! A cache is supposed to be caching content to be able to deliver content fast, not to reload content every time something new is added.

ezsystems, any comments on this matter?

I dont want to release a site and then its slow as a snail because its cache aint working...

regards,
claÜs

liu spider

Sunday 30 November 2003 10:40:50 am

I looked into these php files, and found out that eZ is smart enough to only delete cache files related with the affected node(s).

Imagine you add an new object with id 88 under the object with id 44, then eZ only delete cache files of these two objects, never delete the other cache files.

http://liucougar.scim-im.org
SCIM Input Method Platform
http://scim.sf.net
SJSD Online Editor
http://sf.net/projects/sjsd

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

Main resources:

Total runtime0.8600 sec
Peak memory usage4,096.0000 KB
Database Queries59

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0056 587.9219152.6250
Module start 'layout' 0.00560.0033 740.546939.4609
Module start 'content' 0.00900.8492 780.0078566.8594
Module end 'content' 0.85820.0018 1,346.867212.4688
Script end 0.8600  1,359.3359 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.3822160.0002
Check MTime0.00130.1552160.0001
Mysql Total
Database connection0.00070.077110.0007
Mysqli_queries0.808493.9983590.0137
Looping result0.00060.0752570.0000
Template Total0.825796.020.4129
Template load0.00230.261620.0011
Template processing0.823595.750120.4117
Template load and register function0.00050.058010.0005
states
state_id_array0.00100.115510.0010
state_identifier_array0.00180.204620.0009
Override
Cache load0.00190.2208230.0001
Sytem overhead
Fetch class attribute can translate value0.00100.110730.0003
Fetch class attribute name0.00210.241740.0005
XML
Image XML parsing0.00080.097230.0003
class_abstraction
Instantiating content class attribute0.00000.001740.0000
General
dbfile0.00090.1091160.0001
String conversion0.00000.000940.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
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
5content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
6content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 17
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs