X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=Civi%2FCore%2FContainer.php;h=805056456188bff234a10211371f26eb5bbb0244;hb=caaeea398a64d98c026f467f654ca727968eb0ad;hp=0c67eb5a5373cf7b2f9eecfcfed708469be2fa0c;hpb=34652105d9759150aa2732c3d438d790fb364050;p=civicrm-core.git diff --git a/Civi/Core/Container.php b/Civi/Core/Container.php index 0c67eb5a53..8050564561 100644 --- a/Civi/Core/Container.php +++ b/Civi/Core/Container.php @@ -160,6 +160,7 @@ class Container { 'customData' => 'custom data', 'fields' => 'contact fields', 'contactTypes' => 'contactTypes', + 'metadata' => 'metadata', ]; foreach ($basicCaches as $cacheSvc => $cacheGrp) { $definitionParams = [ @@ -169,7 +170,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', 'customData', 'fields', 'contactTypes']; + $fastArrayCaches = ['groups', 'navigation', 'customData', 'fields', 'contactTypes', 'metadata']; if (in_array($cacheSvc, $fastArrayCaches)) { $definitionParams['withArray'] = 'fast'; } @@ -312,6 +313,7 @@ class Container { if (\CRM_Utils_Constant::value('CIVICRM_FLEXMAILER_HACK_SERVICES')) { \Civi\Core\Resolver::singleton()->call(CIVICRM_FLEXMAILER_HACK_SERVICES, [$container]); } + \CRM_Api4_Services::hook_container($container); \CRM_Utils_Hook::container($container);