cache performance and grand children

Author Message

Brno Bery

Monday 28 April 2008 5:11:15 am

Hi,

I have a strong performance problem with EZ publish and its cache system.

One of the web section is very similar to blogspot.
A folder contains all the blog post and each of them contain several comments.
On the main page, you can browse all the blog, 6 blog post by page, and the number of comments they contain is displayed. So, each time a comment is added, the cache of the blog post it is attached to must be cleared, as well as the global folder.
The problem is that up to 6 to 10 seconds is needed to recreate the cache. And because comments are regularly added, this section is most of the time very slow.

Is there anyway to deal with that ?

I tried to use cache-block for each blog post (instead of the view content cache), but whatever the expiry policies I set, all cache block of all blog post are cleared when a comment is added.

Any idea ?

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 19:31:51
Script start
Timing: Jan 18 2025 19:31:51
Module start 'layout'
Timing: Jan 18 2025 19:31:51
Module start 'content'
Timing: Jan 18 2025 19:31:52
Module end 'content'
Timing: Jan 18 2025 19:31:52
Script end

Main resources:

Total runtime0.7310 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.0069 588.0313152.6406
Module start 'layout' 0.00690.0037 740.671939.4766
Module start 'content' 0.01060.7187 780.1484400.7500
Module end 'content' 0.72930.0016 1,180.89848.1406
Script end 0.7309  1,189.0391 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00350.4776160.0002
Check MTime0.00130.1784160.0001
Mysql Total
Database connection0.00080.112910.0008
Mysqli_queries0.690794.4909460.0150
Looping result0.00060.0807440.0000
Template Total0.694295.020.3471
Template load0.00230.320420.0012
Template processing0.691994.652420.3459
Template load and register function0.00020.032010.0002
states
state_id_array0.00080.111110.0008
state_identifier_array0.00060.082520.0003
Override
Cache load0.00180.2454120.0001
Sytem overhead
Fetch class attribute can translate value0.00110.152610.0011
Fetch class attribute name0.00060.083510.0006
XML
Image XML parsing0.00010.015210.0001
class_abstraction
Instantiating content class attribute0.00000.000610.0000
General
dbfile0.00090.1163100.0001
String conversion0.00000.001540.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.0001 secs