eZ Publish slow once a day

Author Message

Emmanuel Averty

Wednesday 02 February 2011 12:37:20 am

Hi,

Each day, the first time I call eZ pages, the response time is very high (about 20 sec.). After calling each template I made once, the time to display a page become normal (less than 1 sec.).

I use view caching. Does this caching expire after a gap ? Where can I configure this gap ? Can I cancel this expiry ?

Thanks for your replies.

André R.

Wednesday 02 February 2011 1:38:38 am

cache-block expiry maybe combined with heavy logic in those templates?
It's default set to 2 hours, and you can set it to 0 if you want to make it never expire:

http://doc.ez.no/eZ-Publish/Technical-manual/4.x/Reference/Template-functions/Miscellaneous/cache-block/

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

Emmanuel Averty

Thursday 03 February 2011 1:11:14 am

Thanks for your reply André.I tried to put cache-block in my templates.

But the response time is still very long (more than 30 sec. this morning) even for the first pages : login page and front page.

In the debug view, I can see that «Template processing» is taking the most of time. I don't understand that rendering such a simple template (front page) takes so much time.

During the day, the more I logout and login, the faster the front page is rendered.

Any Idea ?

Emmanuel Averty

Friday 04 February 2011 12:06:02 am

I close this thread. My problem had nothing to deal with eZ.

Once again, thank you André for your reply.

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 30 2025 19:32:42
Script start
Timing: Jan 30 2025 19:32:42
Module start 'layout'
Timing: Jan 30 2025 19:32:42
Module start 'content'
Timing: Jan 30 2025 19:32:42
Module end 'content'
Timing: Jan 30 2025 19:32:42
Script end

Main resources:

Total runtime0.0283 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.0070 588.1250151.2109
Module start 'layout' 0.00700.0043 739.3359220.6953
Module start 'content' 0.01130.0155 960.0313997.8672
Module end 'content' 0.02680.0015 1,957.898433.9766
Script end 0.0283  1,991.8750 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00279.4988140.0002
Check MTime0.00103.6146140.0001
Mysql Total
Database connection0.00103.579210.0010
Mysqli_queries0.003110.818430.0010
Looping result0.00000.045410.0000
Template Total0.00103.710.0010
Template load0.00082.782210.0008
Template processing0.00020.875210.0002
Override
Cache load0.00051.835510.0005
General
dbfile0.00217.294880.0003
String conversion0.00000.031140.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.0002 secs