TranslationCache=enabled rewrites cache on each request - possible bug?

Author Message

Christian Rößler

Wednesday 03 November 2010 3:55:09 am

Hy community,

I found out that enabling TranslationCache (which is ON by default in settings/site.ini) regenerates/rewrites the cache-files in /var/<sitename>/cache/translation/* on each request. This surely can not be the desired behavior as this implies heavy operations on the php-side on each request and makes everything a few milliseconds slower ;-) .

I could verify that on a clean installed eZPublish 4.3 and 4.4, using a vanilla install with ezflow demo content package.

When I disable TranslationCache (TranslationCache=disabled) in settings/override/site.ini.append.php those files were not written and thankfully the ViewCache took care of caching stuff.

Could someone please verify before I file a bug?
What is the desired behaviour? Am I missing something?

The behavior can be verified/watched with linux-strace-command on apache and by simply "tail -f var/<site>/log/storage.log ".

Thanks,

Chris

Hannover, Germany
eZ-Certified http://auth.ez.no/certification/verify/395613

Cosimo Paladini

Wednesday 03 November 2010 6:20:43 am

Hi,

a bug has already been reported: issues.ez.no/IssueView.php?Id=17358

Christian Rößler

Wednesday 03 November 2010 7:19:40 am

"

Hi,

a bug has already been reported: issues.ez.no/IssueView.php?Id=17358

"

Ah, great! Didn't found that issue when searching for TranslationCache in the tracker. Thanks for pointing out.

It seems to be fixed for the next release of eZPublish: 4.5, which is due in april or may 2011 ...

Will mark this thread as solved. Enough Information was shared and a workaround as well as an issue-link have been communicated.

chris

Hannover, Germany
eZ-Certified http://auth.ez.no/certification/verify/395613

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 10:23:38
Script start
Timing: Jan 18 2025 10:23:38
Module start 'layout'
Timing: Jan 18 2025 10:23:38
Module start 'content'
Timing: Jan 18 2025 10:23:39
Module end 'content'
Timing: Jan 18 2025 10:23:39
Script end

Main resources:

Total runtime0.5726 sec
Peak memory usage4,096.0000 KB
Database Queries59

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0048 589.2813152.6563
Module start 'layout' 0.00480.0023 741.937539.5313
Module start 'content' 0.00710.5639 781.4688501.3047
Module end 'content' 0.57100.0016 1,282.773412.0938
Script end 0.5726  1,294.8672 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00300.5291160.0002
Check MTime0.00130.2225160.0001
Mysql Total
Database connection0.00100.168210.0010
Mysqli_queries0.525291.7119590.0089
Looping result0.00050.0927570.0000
Template Total0.546595.420.2732
Template load0.00210.361020.0010
Template processing0.544495.068720.2722
Template load and register function0.00020.031110.0002
states
state_id_array0.00090.160510.0009
state_identifier_array0.00110.197520.0006
Override
Cache load0.00170.3036250.0001
Sytem overhead
Fetch class attribute can translate value0.00060.098820.0003
Fetch class attribute name0.00100.177830.0003
XML
Image XML parsing0.00030.047020.0001
class_abstraction
Instantiating content class attribute0.00000.001430.0000
General
dbfile0.00060.1120100.0001
String conversion0.00000.001040.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
7content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
2content/datatype/view/ezxmltags/link.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/link.tplEdit templateOverride template
1content/datatype/view/ezxmltags/quote.tpldatatype/ezxmltext/quote.tplextension/ezwebin/design/ezwebin/override/templates/datatype/ezxmltext/quote.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 16
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs