diff --git a/module/Common/src/Factory/CacheFactory.php b/module/Common/src/Factory/CacheFactory.php index 905ebf56..1add99dd 100644 --- a/module/Common/src/Factory/CacheFactory.php +++ b/module/Common/src/Factory/CacheFactory.php @@ -59,6 +59,10 @@ class CacheFactory implements FactoryInterface case Cache\PhpFileCache::class: return new $cacheConfig['adapter']($cacheConfig['options']['dir']); case Cache\MemcachedCache::class: + if (! class_exists(\Memcached::class)) { + return new Cache\ArrayCache(); + } + $memcached = new \Memcached(); $servers = isset($cacheConfig['options']['servers']) ? $cacheConfig['options']['servers'] : [];