ProcessCaching

Author Message

Kin JOY

Monday 18 May 2009 7:25:29 am

Hello guys,

I'm running ezpublish 4.0 and i am facing an issue with the ProcessCache() fonction. My index page is getting a long timeout but other pages is working fine.

I figured out with xdebug that the processCache fonction is called several time and generate a lock. That's why i have a php sleep of 0.5s each time the processCache fonction is called...

I tried to remove ProcessCaching by adding this line on my override/site.ini.append.php without any success :

[TemplateSettings]
TemplateCache=enabled
TemplateCompile=enabled
TemplateOptimization=enabled
ProcessCaching=disabled

 

So my question dear friends, how can I really disabled ProcessCaching and how can I be sure it is really disabled ? Thanks for your help.

Regards,

Kin

Kin JOY

Wednesday 20 May 2009 1:09:51 am

Hi,

Anyone have an idea ? How come my ez is still using processCaching ?

Thanks for your help...

Regards,

André R.

Wednesday 20 May 2009 3:19:42 am

There is no ProcessCaching setting, so unsure why your trying to set that.

As for processCache(), I guess your talking about the one from one of the cluster handlers (fs or db)?
What is your index page? ezflow page? with disabled cache view cache (cache_ttl=0)?

It might help to upgrade to 4.1.x and use the stale cache feature (see article), but it won't help if you have disabled cache and the template is slow. In that case you have to look into optimizing the template and / or enable view cache on that page ( if just for a little while, for instance ~60 seconds aka cache_ttl=60).

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

Kin JOY

Tuesday 26 May 2009 1:15:50 am

Hi Andre,

Thanks for replying :)

I saw in the following documentation that it was possible to disable ProcessCaching, that's why I tried :
http://ez.no/ezpublish/documentation/configuration/troubleshooting/process_cache_enabled_reduces_performance

In my case it's the FS cluster handlers which cause the issue.

I am going to try what you said on disabling the cache or set up a short TTL. I also read the new stale cache feature and it sounds pretty interresting.

Thanks a lot for your help, I'll get back on this topic as soon as I have results.

Regards,

JOY

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 19 2025 00:25:15
Script start
Timing: Jan 19 2025 00:25:15
Module start 'layout'
Timing: Jan 19 2025 00:25:15
Module start 'content'
Timing: Jan 19 2025 00:25:16
Module end 'content'
Timing: Jan 19 2025 00:25:16
Script end

Main resources:

Total runtime0.7886 sec
Peak memory usage4,096.0000 KB
Database Queries60

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0090 587.9063152.6250
Module start 'layout' 0.00900.0042 740.531339.4453
Module start 'content' 0.01320.7740 779.9766550.7188
Module end 'content' 0.78710.0015 1,330.695312.4922
Script end 0.7886  1,343.1875 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.4226160.0002
Check MTime0.00140.1720160.0001
Mysql Total
Database connection0.00260.335410.0026
Mysqli_queries0.723491.7271600.0121
Looping result0.00070.0946580.0000
Template Total0.751595.320.3757
Template load0.00230.295520.0012
Template processing0.749194.992920.3746
Template load and register function0.00020.028710.0002
states
state_id_array0.00100.126410.0010
state_identifier_array0.00100.131120.0005
Override
Cache load0.00180.2298330.0001
Sytem overhead
Fetch class attribute can translate value0.00120.156820.0006
Fetch class attribute name0.00150.195550.0003
XML
Image XML parsing0.00090.114420.0005
class_abstraction
Instantiating content class attribute0.00000.001950.0000
General
dbfile0.00090.1115170.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
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
7content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
2content/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: 17
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs