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.