Forums / Install & configuration / Cache-block speed

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

eZ debug

Timing: Jan 18 2025 19:29:56
Script start
Timing: Jan 18 2025 19:29:56
Module start 'content'
Timing: Jan 18 2025 19:29:56
Module end 'content'
Timing: Jan 18 2025 19:29:57
Script end

Main resources:

Total runtime0.9505 sec
Peak memory usage4,096.0000 KB
Database Queries194

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0092 589.1563180.8359
Module start 'content' 0.00920.7934 769.9922550.8281
Module end 'content' 0.80270.1478 1,320.8203336.7500
Script end 0.9505  1,657.5703 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00440.4668210.0002
Check MTime0.00160.1689210.0001
Mysql Total
Database connection0.00080.079410.0008
Mysqli_queries0.871291.65661940.0045
Looping result0.00230.24491920.0000
Template Total0.915296.320.4576
Template load0.00200.211020.0010
Template processing0.913296.067820.4566
Template load and register function0.00010.011010.0001
states
state_id_array0.00160.170110.0016
state_identifier_array0.00130.140020.0007
Override
Cache load0.00170.1817450.0000
Sytem overhead
Fetch class attribute can translate value0.00150.153230.0005
Fetch class attribute name0.00150.159740.0004
XML
Image XML parsing0.00080.086530.0003
class_abstraction
Instantiating content class attribute0.00000.001750.0000
General
dbfile0.00240.2551270.0001
String conversion0.00000.000830.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/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