From: Tim Otten Date: Thu, 18 Aug 2016 21:45:29 +0000 (-0700) Subject: CRM-12132 - Make special timeout for event/contrib conditional X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=c98636dfbe29fafbdcc3314fb8afdcf67de5081c;p=civicrm-core.git CRM-12132 - Make special timeout for event/contrib conditional The conditional `if ($session)` was previously applied to this code; restoring. --- diff --git a/CRM/Core/BAO/Cache.php b/CRM/Core/BAO/Cache.php index 51f30566d1..85a79a7afe 100644 --- a/CRM/Core/BAO/Cache.php +++ b/CRM/Core/BAO/Cache.php @@ -307,7 +307,7 @@ class CRM_Core_BAO_Cache extends CRM_Core_DAO_Cache { public static function cleanup($session = FALSE, $table = FALSE, $prevNext = FALSE) { // first delete all sessions more than 20 minutes old which are related to any potential transaction $timeIntervalMins = (int) Civi::settings()->get('secure_cache_timeout_minutes'); - if (TRUE) { + if ($timeIntervalMins && $session) { $transactionPages = array( 'CRM_Contribute_Controller_Contribution', 'CRM_Event_Controller_Registration',