Cache-block speed

Author Message

Ekkehard Dörre

Thursday 07 August 2003 10:24:14 am

Is cache-block usefull and faster in 3.1 when TemplateCompile is on?

Greetings, ekke

http://www.coolscreen.de - Over 40 years of certified eZ Publish know-how: http://www.cjw-network.com
CJW Newsletter: http://projects.ez.no/cjw_newsletter - http://cjw-network.com/en/ez-publ...w-newsletter-multi-channel-marketing

Paul Forsyth

Thursday 07 August 2003 11:13:57 am

From what i've seen, yes, template compile is faster but your own results may vary since using cache-block allows you to focus on those areas needing cached... Have you tried it yet?

paul

Ekkehard Dörre

Friday 08 August 2003 1:22:25 am

Yes, but yesterday with no significant difference, the compiled Template uses the cached cache-block. I have with compiled Template:
Template Total
0.8562 sec
Total script time:
1.2974 sec

First hit when cache is build:
Template Total
3.9713 sec

with compile and cache-block
Template Total
0.2341 sec
Total script time:
0.6734 sec

First hit when cache is build:
Template Total
3.6919 sec
Total script time:
4.2983 sec

Oh, that's funny, today I can see the difference.
Systeminformation:
Linux gamma 2.4.20
CPU: 1 Gh
RAM: 1 Gb
I telefoned with my Provider (shared Hosting):
CPU 90% when cache is build
CPU 30% cached hit
normal CPU 10%
No Zend or other Caches
PHP Version 4.3.1 mbstring on.
Apache/1.3.26

But it is slow. I tried yesterday to implement the Pear userlandcache http://pear.php.net/Cache to cache all. It was very usefull, when I cached the result of the whole index.php with all. But when I only cached the template result, there was no big difference.
A lot of time get lost in index.php in the ini and control functions before the template engine is started.

If I cache the full index.php result, I need an unique cachefile for every case (user, Basket, search) or find a solution to cache only normal anonymous hits. But it makes no sense to cache cached files and have them twice or with cache-block three times.

Greetings, ekke

http://www.coolscreen.de - Over 40 years of certified eZ Publish know-how: http://www.cjw-network.com
CJW Newsletter: http://projects.ez.no/cjw_newsletter - http://cjw-network.com/en/ez-publ...w-newsletter-multi-channel-marketing

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

Main resources:

Total runtime0.7453 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0082 589.3516152.6250
Module start 'layout' 0.00820.0028 741.976639.4453
Module start 'content' 0.01100.7329 781.4219545.7500
Module end 'content' 0.74390.0014 1,327.171912.1719
Script end 0.7453  1,339.3438 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00360.4812160.0002
Check MTime0.00130.1738160.0001
Mysql Total
Database connection0.00170.230810.0017
Mysqli_queries0.687492.2302570.0121
Looping result0.00060.0828550.0000
Template Total0.708595.120.3543
Template load0.00250.338920.0013
Template processing0.706094.719920.3530
Template load and register function0.00010.015310.0001
states
state_id_array0.00160.218710.0016
state_identifier_array0.00130.179120.0007
Override
Cache load0.00180.2475450.0000
Sytem overhead
Fetch class attribute can translate value0.00050.073420.0003
Fetch class attribute name0.00130.173540.0003
XML
Image XML parsing0.00070.095220.0004
class_abstraction
Instantiating content class attribute0.00000.001350.0000
General
dbfile0.00090.1198160.0001
String conversion0.00000.001240.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
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
3content/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
6content/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: 21
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs