Skip to content

Commit

Permalink
Fix cache miss in FastArrays on 'has()'
Browse files Browse the repository at this point in the history
  • Loading branch information
eileenmcnaughton committed Aug 10, 2022
1 parent 0f02717 commit 2fbe6c1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CRM/Utils/Cache/FastArrayDecorator.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,10 @@ public function clear() {
}

public function has($key) {
CRM_Utils_Cache::assertValidKey($key);
if (array_key_exists($key, $this->values)) {
return TRUE;
}
return $this->delegate->has($key);
}

Expand Down

0 comments on commit 2fbe6c1

Please sign in to comment.