Details
-
Bug
-
Resolution: Invalid
-
Medium
-
4.6.0-dev
-
None
-
Operating System: RHEL 6.1
PHP Version: (please be specific, like '4.4.3' or '5.1.5'): 5.3.3
Database and version: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
Browser (and version): Firefox 7.0
Description
Hi,
Having the
[eZINISettings]
DynamicTemplateMode=enabled
doesn't fetch updated values from ini files, unless we clear all caches. If we only clear view cache ("rm -rf var/cache/content/plain_site" in my case or "clear content caches" in Admin UI), the values never change.
The values only change if we clear all caches, but the happens either we have 'DynamicTemplateMode" enabled or disabled.
Steps to reproduce
Change the site.ini file, adding or updating the following group $vi .run/settings/override/site.ini.append.php [eZINISettings] DynamicTemplateMode=enabled [QASettings] OurCompany=eZ Systems1 Create an Override on the Template Log in as admin in admin interface Click "Setup" in top menu Click "Templates" in the left menu Select "/node/view/full.tpl" Click on “New Override†button Extension: No Extension Filename: validate_ini Class: article Base temlate on: View (Without Children) Press “ok†button Click on edit template button (the one on the righ side with a pen on it) Add the following code to the end of the existing code <br/> our setting : {ezini( "QASettings", "OurCompany", "site.ini" )} <br/> Click on “Apply changes†button Create an article Click on “Create new†button Select “Article" in the class dropdown Fill in the following form fields Title: Article 1 Short title: Article 1 short title Intro: This is the intro Click on “Send for Publishing†button Logout Enter in plain site Access the plain site Click on “article 1 short title†at the bottom of the page Verify that, in the bottom of the page, the value of the ini file attribute has *not* changed and it’s: eZ Systems1 Change the ini file and set the attribute to eZ Systems2 $vi .run/settings/override/site.ini.append.php [QASettings] OurCompany=eZ Systems2 Clear the view cache (do not clear all caches) - Go to content cache folder and deleted the view cache. $rm –rf .run/var/cache/content/plain_site Enter in plain site Access the plain site Click on “article 1 short title†at the bottom of the page Verify that, in the bottom of the page, the value of the ini file attribute *has* changed and the value is now the new value fetched from the ini file (eZ Systems2)