Some static cache issues

Author Message

Vitaly Puzrin

Monday 10 April 2006 12:21:42 am

1. As far as I know, static cache currently make cache only for main layout. What about add cacheing ofr other layouts too (for example, for printable version) ? That should help to speed up site when during search bots scan.

Is it possible to add more sttings to config? Those sould differ from setting of main layout. For example, I have printable vertion for all articles, but don't wish to abouse EZ with other unnecessary requests when makestaticcache.php works.

2. Another idea is to add matching allowed classes to static cache. Example:

I have folder with 1000 links (in links catalog). Folder template shows all links together.

If you try to look a single link directly (in full view), then overriden templete generates 301 redirect (to prevent bots scan next time).

But when I execute makestaticcache.php, it scans not only the folder, but each of 1000 links. That produce a lot of unnesessary loads.

So, the idea is to exlude sobe objects from static cache, dependinr on their class.

Betsy Gamrat

Tuesday 11 April 2006 4:20:33 am

You can use <i>PHP's readfile</i> function to extract templates with alot of content and deliver the page using the PHP output instead of eZ. I have used this approach to allow eZ to support very high traffic sites - with burst traffic that all arrives in a short time span.

This article describes the approach:

http://www.ddj.com/documents/s=9938/ddj0601g/0601g.html

Demonstration code is at:

http://wirehopper.com/php/preprocess.php?url=wirehopper.com

Vitaly Puzrin

Wednesday 12 April 2006 1:56:48 am

I don't need preprocessor. Static cache feature compleately satisfy my needs.

The idea is to speed up cache building by filtering unnecessary classes (or by selecting allowed ones). That will greately improve performance in some cases.

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 11:06:13
Script start
Timing: Jan 18 2025 11:06:13
Module start 'layout'
Timing: Jan 18 2025 11:06:13
Module start 'content'
Timing: Jan 18 2025 11:06:13
Module end 'content'
Timing: Jan 18 2025 11:06:13
Script end

Main resources:

Total runtime0.7903 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.0073 589.3438152.6250
Module start 'layout' 0.00730.0032 741.968839.4453
Module start 'content' 0.01050.7781 781.4141501.4063
Module end 'content' 0.78860.0016 1,282.820312.3203
Script end 0.7902  1,295.1406 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.4181160.0002
Check MTime0.00130.1594160.0001
Mysql Total
Database connection0.00130.163110.0013
Mysqli_queries0.738693.4604570.0130
Looping result0.00050.0689550.0000
Template Total0.751295.120.3756
Template load0.00210.264120.0010
Template processing0.749194.793920.3746
Template load and register function0.00020.020610.0002
states
state_id_array0.00110.133610.0011
state_identifier_array0.00150.193120.0008
Override
Cache load0.00170.2112200.0001
Sytem overhead
Fetch class attribute can translate value0.00110.135020.0005
Fetch class attribute name0.00100.131840.0003
XML
Image XML parsing0.00070.088320.0003
class_abstraction
Instantiating content class attribute0.00000.004640.0000
General
dbfile0.00090.1146160.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
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
3content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 9
 Number of unique templates used: 5

Time used to render debug report: 0.0002 secs