Memcached error

dougdirac

Active member
I'm getting this error when I enable memcache in my config.php file:

Fatal error: Uncaught LogicException: Cannot load Memcached cache provider without Memcached in /www/src/XF/CacheFactory.php:160 Stack trace: #0 /www/src/XF/CacheFactory.php(79): XF\CacheFactory->createMemcachedCache(Array) #1 /www/src/XF/CacheFactory.php(34): XF\CacheFactory->instantiate('Memcached', Array) #2 /www/src/XF/App.php(687): XF\CacheFactory->create('Memcached', Array) #3 /www/src/XF/Container.php(228): XF\App->XF\{closure}('', Array, Object(XF\Container)) #4 /www/src/XF/App.php(2491): XF\Container->create('cache', '') #5 /www/src/XF/App.php(714): XF\App->cache('registry') #6 /www/src/XF/Container.php(28): XF\App->XF\{closure}(Object(XF\Container)) #7 /www/src/XF/App.php(1779): XF\Container->offsetGet('registry') #8 /www/src/XF/Container.php(28): XF\App->XF\{closure}(Object(XF\Container)) #9 /www/src/XF/App.php(1571): XF\Container->offsetGet('extension.liste...') #10 /www/src/XF/Container.php(28): XF\App->XF\{closure in /www/src/XF/CacheFactory.php on line 160

Here are my settings:

PHP:
$config['cache']['enabled'] = true;
$config['cache']['sessions'] = true;
$config['cache']['provider'] = 'Memcached';
$config['cache']['namespace'] = 'xf';
$config['cache']['config'] = [
    'server' => 'localhost'
];

Any idea what the problem is?
 
Top