diff --git a/module/VuFind/src/VuFind/View/Helper/Root/IconFactory.php b/module/VuFind/src/VuFind/View/Helper/Root/IconFactory.php index 7b32284f59c..82becdde51f 100644 --- a/module/VuFind/src/VuFind/View/Helper/Root/IconFactory.php +++ b/module/VuFind/src/VuFind/View/Helper/Root/IconFactory.php @@ -70,8 +70,12 @@ public function __invoke( } $config = $container->get(\VuFindTheme\ThemeInfo::class) ->getMergedConfig('icons', true); + // As of release 1.1.0, the memory storage adapter has a flaw which can cause + // unnecessary out of memory exceptions when a memory limit is enabled; we + // can disable these problematic checks by setting memory_limit to -1. + $cacheConfig = ['name' => 'memory', 'options' => ['memory_limit' => -1]]; $cache = $container->get(\Laminas\Cache\Service\StorageAdapterFactory::class) - ->createFromArrayConfiguration(['name' => 'memory', 'options' => []]); + ->createFromArrayConfiguration($cacheConfig); $helpers = $container->get('ViewHelperManager'); return new $requestedName( $config,