View Caching problem with custom classes

Author Message

Benjamin Lorteau

Saturday 27 March 2010 3:18:57 am

Hello,

I'm encountering a rather annoying misfunction of the view cache system : for the standard classes (article, frontpage), the view cache is up and running, but for custom classes, it won't work.

I could check that in the used template list of the debug output, where the only template shown should be pagelayout.tpl. For the standard classes, it's the case, but for custom classes, all templates related to the node/view/full.tpl are listed. The number of SQL queries is also abnormally high (200+) for pages that are supposed to be cached.

What did I miss in the configuration to enable view caching even for custom classes ?

Thanks in advance for your answers !

eZ Publish personal project : http://www.aeriesguard.com [fr]

Benjamin Lorteau

Saturday 27 March 2010 4:53:56 am

Found the problem, thanks to Bertrand Dunogier and Alex Yes.

I use the ezcore rating system which template is included in the custom classes view. I added cache_ttl=0 to the template in order to immediately show the result of the rating after submitting. But I found that the rating module already cleared the rated object cache, so the cache_ttl=0 isn't necessary.

eZ Publish personal project : http://www.aeriesguard.com [fr]

Bertrand Dunogier

Saturday 27 March 2010 2:41:30 pm

My pleasure. It looks like our search engine ain't that useless after all :-)

Bertrand Dunogier
eZ Systems Engineering, Lyon
http://twitter.com/bdunogier
http://gplus.to/BertrandDunogier

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

Main resources:

Total runtime1.0736 sec
Peak memory usage4,096.0000 KB
Database Queries58

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0057 588.2656151.2266
Module start 'layout' 0.00570.0028 739.492236.6797
Module start 'content' 0.00861.0642 776.1719484.3828
Module end 'content' 1.07270.0008 1,260.554711.8125
Script end 1.0736  1,272.3672 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00300.2785160.0002
Check MTime0.00120.1139160.0001
Mysql Total
Database connection0.00050.050310.0005
Mysqli_queries1.032696.1805580.0178
Looping result0.00040.0378560.0000
Template Total1.034896.420.5174
Template load0.00310.290320.0016
Template processing1.031696.090820.5158
Template load and register function0.00010.010710.0001
states
state_id_array0.00150.138810.0015
state_identifier_array0.00160.153520.0008
Override
Cache load0.00170.1601170.0001
Sytem overhead
Fetch class attribute can translate value0.00050.050520.0003
Fetch class attribute name0.00090.087350.0002
XML
Image XML parsing0.00340.314020.0017
class_abstraction
Instantiating content class attribute0.00000.001460.0000
General
dbfile0.00490.4585220.0002
String conversion0.00000.000440.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/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
3content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/link.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/link.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 12
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs