Skip to content

Commit

Permalink
Ensure recently converted groups cache matches previous behabiour my …
Browse files Browse the repository at this point in the history
…setting withArray as fast for it

Ensure custom data cache use the fastArray Cache
  • Loading branch information
seamuslee001 committed Jul 14, 2019
1 parent 792fce0 commit 5d27ade
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Civi/Core/Container.php
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ public function createContainer() {
// For Caches that we don't really care about the ttl for and/or maybe accessed
// fairly often we use the fastArrayDecorator which improves reads and writes, these
// caches should also not have concurrency risk.
$fastArrayCaches = ['groups', 'navigation'];
$fastArrayCaches = ['groups', 'navigation', 'customData'];
if (in_array($cacheSvc, $fastArrayCaches)) {
$definitionParams['withArray'] = 'fast';
}
Expand Down

0 comments on commit 5d27ade

Please sign in to comment.