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

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

eZ debug

Timing: Jan 30 2025 00:44:11
Script start
Timing: Jan 30 2025 00:44:11
Module start 'content'
Timing: Jan 30 2025 00:44:11
Module end 'content'
Timing: Jan 30 2025 00:44:11
Script end

Main resources:

Total runtime0.1190 sec
Peak memory usage2,048.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0045 588.1953180.8125
Module start 'content' 0.00450.0064 769.007894.0547
Module end 'content' 0.01090.1080 863.0625522.9063
Script end 0.1189  1,385.9688 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00292.4133200.0001
Check MTime0.00110.9339200.0001
Mysql Total
Database connection0.00060.527110.0006
Mysqli_queries0.081268.28391410.0006
Looping result0.00090.72231390.0000
Template Total0.107690.510.1076
Template load0.00060.499210.0006
Template processing0.107089.977010.1070
Override
Cache load0.00040.347110.0004
Sytem overhead
Fetch class attribute can translate value0.00060.464710.0006
XML
Image XML parsing0.00020.170510.0002
General
dbfile0.00766.3832200.0004
String conversion0.00000.004030.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/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