From 5ce45d1a948bd965f63c333d8f2ed0f76f74cc92 Mon Sep 17 00:00:00 2001 From: Thomas Steur Date: Wed, 2 Jul 2014 04:23:42 +0200 Subject: added development flag which allows us to not cache static cache and to make some more checks when developers develop plugins --- config/global.ini.php | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) (limited to 'config') diff --git a/config/global.ini.php b/config/global.ini.php index b5b21294bc..c3c68c1de0 100644 --- a/config/global.ini.php +++ b/config/global.ini.php @@ -77,10 +77,6 @@ enable_sql_profiler = 0 ; this is useful for Piwik developers as an easy way to create data in their local Piwik enable_measure_piwik_usage_in_idsite = 0 -; if set to 1, javascript files will be included individually and neither merged nor minified. -; this option must be set to 1 when adding, removing or modifying javascript files -disable_merged_assets = 0 - ; If set to 1, all requests to piwik.php will be forced to be 'new visitors' tracker_always_new_visitor = 0 @@ -92,7 +88,20 @@ allow_upgrades_to_beta = 0 ; will be loaded when executing tests. enable_load_standalone_plugins_during_tests = 0 +[Development] + +; Enables the development mode where we avoid most caching to make sure code changes will be directly applied as +; some caches are only invalidated after an update otherwise. When enabled it'll also performs some validation checks. +; For instance if you register a method in a widget we will verify whether the method actually exists and is public. +; If not, we will show you a helpful warning to make it easy to find simple typos etc. +enabled = 0 + +; if set to 1, javascript files will be included individually and neither merged nor minified. +; this option must be set to 1 when adding, removing or modifying javascript files +disable_merged_assets = 0 + [General] + ; the following settings control whether Unique Visitors will be processed for different period types. ; year and range periods are disabled by default, to ensure optimal performance for high traffic Piwik instances ; if you set it to 1 and want the Unique Visitors to be re-processed for reports in the past, drop all piwik_archive_* tables -- cgit v1.2.3