site.ini [DesignSettings]DesignLocationCache - Purpose? Buggy?

Author Message

Reinhard Hutter

Tuesday 06 April 2010 3:33:02 am

What's the purpose of this new setting? Is there any documentation beyond the article for 4.3's backward compatibility? It is enabled by default, and seems to cause some really weird behavior...

Szenario:

A new v4.3 installation with Plain site package using hostname siteaccess for backend and frontend. plain_site_user is the frontend siteaccess, using plain_site and base as SiteDesign respectivly AdditionalSiteDesignList. plain_site_admin is the backend siteaccess using admin2 and admin as SiteDesign respectivly AdditionalSiteDesignList. Some extensions with design extensions enabled (e.g. ezGmapLocationDatatype).

Issues:

Every time after clearing the entire cache (using the sidebar), the backend uses plain_site_user's pagelayout.tpl. After clearing the cache a 2nd time (via setup tab, the sidebar has vanished), without doing any changes, backend uses the correct pagelayout again.

In the backend's template view ( e.g. /visual/templateview/node/view/full.tpl ) the standard-template-resource is shown as "design/admin2/templates" for both, plain_site_user and plain_site_admin. Why...?

On the same page in the override listing for plain_site_user all overrides are listed, but according to the listing, no file matches the override. However, when viewing the frontend in the browser, the frontend override templates are correctly used.

Solution:

Manually disabling DesignLocationCache in site.ini resolves all issues.

Nicolas Pastorino

Tuesday 06 April 2010 4:36:04 am

Hello Reinhard,

Thanks for this detailed explanation. This may be a bug. I would recommend posting this in the issue tracker, with as much detail as here. Here it goes : http://issues.ez.no/ezpublish.

Thanks!

--
Nicolas Pastorino
Director Community - eZ
Member of the Community Project Board

eZ Publish Community on twitter: http://twitter.com/ezcommunity

t : http://twitter.com/jeanvoye
G+ : http://plus.tl/jeanvoye

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 04:58:24
Script start
Timing: Jan 18 2025 04:58:24
Module start 'layout'
Timing: Jan 18 2025 04:58:24
Module start 'content'
Timing: Jan 18 2025 04:58:25
Module end 'content'
Timing: Jan 18 2025 04:58:25
Script end

Main resources:

Total runtime1.3483 sec
Peak memory usage4,096.0000 KB
Database Queries55

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0055 588.1719152.6563
Module start 'layout' 0.00550.0046 740.828139.5078
Module start 'content' 0.01011.3368 780.3359526.0938
Module end 'content' 1.34690.0014 1,306.429712.2500
Script end 1.3483  1,318.6797 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.2534160.0002
Check MTime0.00140.1030160.0001
Mysql Total
Database connection0.00060.044010.0006
Mysqli_queries1.300596.4530550.0236
Looping result0.00050.0364530.0000
Template Total1.310697.220.6553
Template load0.00190.140020.0009
Template processing1.308797.063220.6544
Template load and register function0.00020.016310.0002
states
state_id_array0.00170.125310.0017
state_identifier_array0.00170.124620.0008
Override
Cache load0.00150.1130180.0001
Sytem overhead
Fetch class attribute can translate value0.00120.090420.0006
Fetch class attribute name0.00150.109530.0005
XML
Image XML parsing0.00060.042020.0003
class_abstraction
Instantiating content class attribute0.00000.000530.0000
General
dbfile0.00140.1054160.0001
String conversion0.00000.000840.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/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
1content/datatype/view/ezxmltags/link.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/link.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: 6

Time used to render debug report: 0.0001 secs