Skip to content
Snippets Groups Projects
Unverified Commit e2c512f7 authored by Seamus Lee's avatar Seamus Lee Committed by GitHub
Browse files

Merge pull request #18643 from eileenmcnaughton/cache

Fix cache bypass
parents 6e1ae772 d4761b7f
Branches
Tags
No related merge requests found
......@@ -477,10 +477,10 @@ SELECT g.*
$aclKeys = array_keys($acls);
$aclKeys = implode(',', $aclKeys);
$cacheKey = CRM_Utils_Cache::cleanKey("$tableName-$aclKeys");
$cacheKey = CRM_Utils_Cache::cleanKey("$type-$tableName-$aclKeys");
$cache = CRM_Utils_Cache::singleton();
$ids = $cache->get($cacheKey);
if (!$ids) {
if (!is_array($ids)) {
$ids = [];
$query = "
SELECT a.operation, a.object_id
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment