Details
-
Improvement
-
Resolution: Fixed
-
Medium
-
4.4.0alpha3
-
None
Description
Currently you'll have to change all calls to ezini() and ezini_has_variable in templates to take advantage of the 'dynamic' option.
For some sites this option has several benefits:
o You don't need to clear template cache when you change settings used in them
0 You can enable shared template compilation cache and not risk that wrong settings are used, usefull for large installs with lots of siteacceseses that share the same templates but not ini settings
The idea is to add a setting to control this:
diff --git a/settings/site.ini b/settings/site.ini index 96ce305..b9c2b97 100644 --- a/settings/site.ini +++ b/settings/site.ini @@ -1346,6 +1346,14 @@ ReadonlySettingList[]=template.ini/PHP/PHPOperatorList ReadonlySettingList[]=image.ini/ImageMagick/ExecutablePath ReadonlySettingList[]=image.ini/ImageMagick/Executable +# Dynamic ini template operator +# Changes global setting for ezini and ezini_hasvariable template +# operators for the default setting of 'dynamic' parameter +# When enabled these calls are not compiled as ini values into +# templates, but read dynamically +# Note: only read during template compilation +DynamicTemplateMode=disabled + [ProxySettings] # If an user wants to use proxy in linkcheck.php/rssimport.php or downloading site packages in "setup wizard". # If empty proxy will not be used