From efa121e14d4e4d5c9a6e758cb42ba0fe29745998 Mon Sep 17 00:00:00 2001 From: Matthew Wire Date: Sun, 29 May 2022 17:00:51 +0100 Subject: [PATCH] Release lock when deleting cache key --- CRM/Utils/Cache/SqlGroup.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CRM/Utils/Cache/SqlGroup.php b/CRM/Utils/Cache/SqlGroup.php index 84618bd263..97df20cb12 100644 --- a/CRM/Utils/Cache/SqlGroup.php +++ b/CRM/Utils/Cache/SqlGroup.php @@ -115,7 +115,9 @@ class CRM_Utils_Cache_SqlGroup implements CRM_Utils_Cache_Interface { } if (is_int($ttl) && $ttl <= 0) { - return $this->delete($key); + $result = $this->delete($key); + $lock->release(); + return $result; } $dataExists = CRM_Core_DAO::singleValueQuery("SELECT COUNT(*) FROM {$this->table} WHERE {$this->where($key)}"); -- 2.25.1