cache-block strategies

Author Message

Menno van Drunen

Saturday 20 September 2003 5:03:55 am

It is not clear to me how to use cache-blocks, can somone explain what the best strategy is for using them? If got questions like:

- Should I include as less (only database interaction) or as much html as possible in a cache-block?
- Should I use cache-blocks for simple operations as ezimage and ezurl aswell or only for complicated operations?

Thx in advance!

MvD

Bjørn Kaarstein

Tuesday 23 September 2003 1:07:03 am

My suggestion is that you use the cache-block functionality on parts of your site that rarely change, i.e. menus, and fetched items from pagelayout.

Regards Bjørn

Menno van Drunen

Wednesday 24 September 2003 9:07:28 am

ok. should the other things all go via template cache-ing? I'm asking because my site (www.sviib.nl/logix) realy performes horrible.

What can I do in general to improve the speed (template caching is on, I deleted all database interaction that was not realy needed and I implemented cach-blocks)??

I hope someone can help because I realy like the ez publish concept but the performance.....

Thx in advance,

Menno

Paul Borgermans

Wednesday 24 September 2003 9:37:23 am

Is view caching on?
Is template compiling on (ezp >= 3.1)?

What are the machine specs?

-paul

eZ Publish, eZ Find, Solr expert consulting and training
http://twitter.com/paulborgermans

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 31 2025 03:42:11
Script start
Timing: Jan 31 2025 03:42:11
Module start 'layout'
Timing: Jan 31 2025 03:42:11
Module start 'content'
Timing: Jan 31 2025 03:42:11
Module end 'content'
Timing: Jan 31 2025 03:42:11
Script end

Main resources:

Total runtime0.0786 sec
Peak memory usage6,144.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0231 588.1250151.2109
Module start 'layout' 0.02310.0043 739.3359220.6875
Module start 'content' 0.02740.0493 960.0234997.7734
Module end 'content' 0.07670.0020 1,957.796933.9922
Script end 0.0786  1,991.7891 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00324.0592140.0002
Check MTime0.00111.4295140.0001
Mysql Total
Database connection0.015820.104010.0158
Mysqli_queries0.00243.074530.0008
Looping result0.00000.016710.0000
Template Total0.00141.810.0014
Template load0.00111.433110.0011
Template processing0.00020.314110.0002
Override
Cache load0.00070.896510.0007
General
dbfile0.026133.252480.0033
String conversion0.00000.007940.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs