From dc73faeef32227edd493898e1f6d7b042e5526db Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Thu, 21 Jun 2018 01:23:45 -0700 Subject: [PATCH] CRM_Cxn_CiviCxnHttp - Use PSR-16 compliant cache key --- CRM/Cxn/CiviCxnHttp.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CRM/Cxn/CiviCxnHttp.php b/CRM/Cxn/CiviCxnHttp.php index e5790bad45..0d6024812c 100644 --- a/CRM/Cxn/CiviCxnHttp.php +++ b/CRM/Cxn/CiviCxnHttp.php @@ -54,7 +54,7 @@ class CRM_Cxn_CiviCxnHttp extends \Civi\Cxn\Rpc\Http\PhpHttp { $lowVerb = strtolower($verb); if ($lowVerb === 'get' && $this->cache) { - $cachePath = 'get/' . md5($url); + $cachePath = 'get_' . md5($url); $cacheLine = $this->cache->get($cachePath); if ($cacheLine && $cacheLine['expires'] > CRM_Utils_Time::getTimeRaw()) { return $cacheLine['data']; @@ -66,7 +66,7 @@ class CRM_Cxn_CiviCxnHttp extends \Civi\Cxn\Rpc\Http\PhpHttp { if ($lowVerb === 'get' && $this->cache) { $expires = CRM_Utils_Http::parseExpiration($result[0]); if ($expires !== NULL) { - $cachePath = 'get/' . md5($url); + $cachePath = 'get_' . md5($url); $cacheLine = array( 'url' => $url, 'expires' => $expires, -- 2.25.1