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>
Sun, 14 Jul 2019 04:39:59 +0000 (14:39 +1000)
Ensure custom data cache use the fastArray Cache

Civi/Core/Container.php

index b205f59efe89455e9d2ba7c5e251e4375b9ba6b5..c456d3d0d8bbfc122a7aac343ecee5be89483833 100644 (file)
@@ -168,7 +168,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', 'navigation'];
+      $fastArrayCaches = ['groups', 'navigation', 'customData'];
       if (in_array($cacheSvc, $fastArrayCaches)) {
         $definitionParams['withArray'] = 'fast';
       }