I need a lesson in caching with eZ Publish...

Author Message

Christian Johansen

Wednesday 25 January 2006 5:41:33 am

I'm fighting this cache problem... I now have a finished site which works fine when caching is off, except it's pretty slow. So I tried some caching. I implemented two cache-blocks in my pagelayout, and it helped a little. Then I did:

[ContentSettings]
TranslationList=nor-NO
ViewCaching=enabled
PreViewCache=enabled

[TemplateSettings]
Debug=disabled
TemplateCache=enabled
TemplateCompile=enabled
TemplateCompression=enabled
TemplateOptimization=enabled
ShowUsedTemplates=disabled

Worked through the templates to have them cached, then looked forward to a speedy eZ site :) Unfortunately all I got were blank pages. Then I disabled compression and optimization and I got reasonably fast pages. However, new content was not published to the page? Also, some images disappeared from the cached pages.

How long are pages cached? And how can I have a speedy site with caching but still be able to publish new material? Must I clear the cache everytime I publish something?

Also: I'm not using $node in pagelayout.tpl as I've learned that that brings me nowhere with cached pages :)

Christian Johansen

Friday 27 January 2006 3:31:36 am

Anyone,? This is a huge problem for me, and I can't find out what's wrong

Rodrigo Pinheiro

Friday 27 January 2006 4:22:35 am

Hi there,

You will find plenty of information on that subject at the following thread:
http://ez.no/community/forum/general/ez_speed_optimisation_faq#main

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 31 2025 03:37:25
Script start
Timing: Jan 31 2025 03:37:25
Module start 'layout'
Timing: Jan 31 2025 03:37:25
Module start 'content'
Timing: Jan 31 2025 03:37:25
Module end 'content'
Timing: Jan 31 2025 03:37:25
Script end

Main resources:

Total runtime0.0246 sec
Peak memory usage6,144.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0063 588.2578151.2266
Module start 'layout' 0.00630.0038 739.4844220.7188
Module start 'content' 0.01010.0123 960.2031997.8203
Module end 'content' 0.02250.0021 1,958.023429.9922
Script end 0.0245  1,988.0156 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.003112.6291140.0002
Check MTime0.00114.4583140.0001
Mysql Total
Database connection0.00072.984510.0007
Mysqli_queries0.003313.616530.0011
Looping result0.00000.072810.0000
Template Total0.00166.510.0016
Template load0.00135.163110.0013
Template processing0.00031.278610.0003
Override
Cache load0.00103.909710.0010
General
dbfile0.00031.420480.0000
String conversion0.00000.044740.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs