Cache problem / question

Author Message

Matt the Dwarf

Tuesday 16 May 2006 12:01:16 am

Hey there,

I've have a site setup using ezPublish and am keen to sort out the caching of content and templates to improve load times.

I had the site caching 'turned on' for a period last week and it improved things dramatically, however, the way i've had it setup, means that some content is dynamic depending on where you go in the site and was not refreshing (so we had to turn it off).

My question is, can certain templates be 'immune' from template caching? If so, how do I do it?

I understand a bit of this stuff, but I didn't build the site and my programmer can spend minimal hours on it at the moment.

Cheers
Matt

Alexandre Cunha

Tuesday 16 May 2006 12:45:06 am

Not sure if this helps, but have you search in the manual?
Take a look on this: http://ez.no/doc/ez_publish/technical_manual/3_6/reference/template_functions/miscellaneous/cache_block

http://AlexandreCunha.com

André R.

Tuesday 16 May 2006 2:06:24 am

in the top of everey node template, you can set view cache timeout in seconds:
{set-block scope=root variable=cache_ttl}500{/set-block}

If you set it to 0 the page (node content) will be 100% dynamic

Here is my site.ini settings btw:

[ContentSettings]
ViewCaching=enabled
EditDirtyObjectAction=usecurrent

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

A good thread on php accelerators and apache vs others:
http://ez.no/community/forum/suggestions/memcache#msg98952

the ultimate performance thread:
http://ez.no/community/forum/general/ez_publish_performance_optimisation_faq

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

Matt the Dwarf

Tuesday 16 May 2006 7:54:41 pm

<i>in the top of everey node template, you can set view cache timeout in seconds:
{set-block scope=root variable=cache_ttl}500{/set-block}

If you set it to 0 the page (node content) will be 100% dynamic</i>

This fixed the problem. Thanks for your help on this one.
Cheers
Matt

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 18 2025 22:40:26
Script start
Timing: Jan 18 2025 22:40:26
Module start 'layout'
Timing: Jan 18 2025 22:40:26
Module start 'content'
Timing: Jan 18 2025 22:40:27
Module end 'content'
Timing: Jan 18 2025 22:40:27
Script end

Main resources:

Total runtime0.8554 sec
Peak memory usage4,096.0000 KB
Database Queries62

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0050 589.0234152.6250
Module start 'layout' 0.00500.0024 741.648439.4453
Module start 'content' 0.00740.8462 781.0938595.6094
Module end 'content' 0.85360.0018 1,376.703112.1641
Script end 0.8554  1,388.8672 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00310.3571160.0002
Check MTime0.00130.1563160.0001
Mysql Total
Database connection0.00090.106710.0009
Mysqli_queries0.782091.4136620.0126
Looping result0.00170.1954600.0000
Template Total0.824596.420.4123
Template load0.00220.257820.0011
Template processing0.822396.127320.4112
Template load and register function0.00020.017910.0002
states
state_id_array0.00110.122910.0011
state_identifier_array0.00120.140520.0006
Override
Cache load0.00170.2000330.0001
Sytem overhead
Fetch class attribute can translate value0.00090.103030.0003
Fetch class attribute name0.00180.213760.0003
XML
Image XML parsing0.01211.409830.0040
class_abstraction
Instantiating content class attribute0.00000.002170.0000
General
dbfile0.01001.1681230.0004
String conversion0.00000.000840.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
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
8content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
7content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 25
 Number of unique templates used: 7

Time used to render debug report: 0.0002 secs