Ensure recently converted groups cache matches previous behabiour my setting withArra...
authorSeamus Lee <seamuslee001@gmail.com>
Wed, 10 Jul 2019 22:19:18 +0000 (08:19 +1000)
committerSeamus Lee <seamuslee001@gmail.com>
Fri, 12 Jul 2019 21:21:31 +0000 (07:21 +1000)
Ensure that navigation cache is using fastArray

Civi/Core/Container.php

index 1587f7263d0166feca2905c2a481b99debcbfe25..1dc5d53b277088c201e878a0025bc94e4d257b7b 100644 (file)
@@ -167,7 +167,7 @@ class Container {
       // 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'];
+      $fastArrayCaches = ['groups', 'navigation'];
       if (in_array($cacheSvc, $fastArrayCaches)) {
         $definitionParams['withArray'] = 'fast';
       }