extension cache

Author Message

Georg Franz

Friday 18 July 2003 5:51:47 am

Hi,

as I wrote in a posting before, I am trying to create my first extension for eZ.

Everything is working fine, now I want to improve the speed. The template processings lasts over 10 seconds.

Can anybody tell me how to use the ez cache functions? Is there a documentation?

Thanx in advance!

Kind regards,
Emil.

Best wishes,
Georg.

--
http://www.schicksal.com Horoskop website which uses eZ Publish since 2004

Georg Franz

Friday 18 July 2003 12:43:06 pm

Hm. I've found out, that there - might be - a bug in the extension translation system.

I've installed a site with two languages: german / english.

I've installed a small extension and created an extension translation.

In the pagelayout.tpl (and other templates), I use the i18n function to translate my strings, in the extension tpls I use the x18n function.

Sometimes (I don't know under which circumstances) the sites looses it's language information and the whole german site is shown in english. (Maybe it's a cache problem?)

The debug output says, that the "translation.ts" was not found. (I don't know if it means the normal translation.ts or the translation.ts of the extension)

Furthermore, the template creation lasted more than 10 seconds.

Now I've moved the translation of the extension to the normal translation.ts and only use the i18n function to translate the site.

The template load of the extension lasts 0.5 seconds, the translation problem doesn't occur anymore.

So - maybe - there is a bug in the extension translation? (which - furthermore - slow down the system?)

Kind regards,
Emil.

Best wishes,
Georg.

--
http://www.schicksal.com Horoskop website which uses eZ Publish since 2004

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

Main resources:

Total runtime0.9122 sec
Peak memory usage4,096.0000 KB
Database Queries52

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0053 587.7891152.6094
Module start 'layout' 0.00530.0070 740.398439.4141
Module start 'content' 0.01240.8981 779.8125489.2344
Module end 'content' 0.91040.0018 1,269.046912.1953
Script end 0.9122  1,281.2422 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00350.3861160.0002
Check MTime0.00150.1638160.0001
Mysql Total
Database connection0.00120.135110.0012
Mysqli_queries0.856893.9256520.0165
Looping result0.00050.0572500.0000
Template Total0.875596.020.4377
Template load0.00180.192620.0009
Template processing0.873795.776520.4368
Template load and register function0.00010.011410.0001
states
state_id_array0.00080.085510.0008
state_identifier_array0.00080.092320.0004
Override
Cache load0.00150.1610250.0001
Sytem overhead
Fetch class attribute can translate value0.00080.091510.0008
Fetch class attribute name0.00140.158730.0005
XML
Image XML parsing0.00040.046310.0004
class_abstraction
Instantiating content class attribute0.00000.001240.0000
General
dbfile0.00190.2067160.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
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
4content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/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: 12
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs