[feature/module_services] Disable caching of portal modules when debug enabled

This commit is contained in:
Marc Alexander
2013-11-14 18:22:28 +01:00
parent e26c88e963
commit 0eacefc1da

View File

@@ -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();