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.