From 9bdcddd7e62fb3e579bdae9a8fce73e7e4c85756 Mon Sep 17 00:00:00 2001 From: Seamus Lee Date: Mon, 7 Sep 2015 00:52:44 +0000 Subject: [PATCH] CRM-14308 Allow for disabling of Smart Group Cache by setting smartGroupCacheTimout to 0 --- CRM/Contact/BAO/GroupContactCache.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/CRM/Contact/BAO/GroupContactCache.php b/CRM/Contact/BAO/GroupContactCache.php index d3fbd76136..c31b062c49 100644 --- a/CRM/Contact/BAO/GroupContactCache.php +++ b/CRM/Contact/BAO/GroupContactCache.php @@ -588,8 +588,7 @@ AND civicrm_group_contact.group_id = $groupID "; if ( isset($config->smartGroupCacheTimeout) && - is_numeric($config->smartGroupCacheTimeout) && - $config->smartGroupCacheTimeout > 0 + is_numeric($config->smartGroupCacheTimeout) ) { return $config->smartGroupCacheTimeout; } -- 2.25.1