From 0eacefc1da5eb56024010c8a0d170d2ff19c0221 Mon Sep 17 00:00:00 2001 From: Marc Alexander Date: Thu, 14 Nov 2013 18:22:28 +0100 Subject: [PATCH] [feature/module_services] Disable caching of portal modules when debug enabled --- portal/includes/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/portal/includes/functions.php b/portal/includes/functions.php index 4627c43c..3167651f 100644 --- a/portal/includes/functions.php +++ b/portal/includes/functions.php @@ -72,7 +72,7 @@ function obtain_portal_modules() { global $db, $cache, $portal_modules; - if (($portal_modules = $cache->get('portal_modules')) === false) + if (($portal_modules = $cache->get('portal_modules')) === false || defined('DEBUG')) { $portal_modules = $portal_cached_modules = array();