memcached is not working

Permalink
I have latest version of concrete5 (5.4.2.2), and in my config/site.php I have added the following configuration for memcache

define('CACHE_LIBRARY', 'memcached');
$cacheBackendOptions = array ('servers' => array('host' => '127.0.0.1', 'port' => 11211));
define('CACHE_BACKEND_OPTIONS', serialize($cacheBackendOptions));


I have tested the memcache seperately, and it is working fine, but with Concrete5 it is not working.

If i remove the above code from config, then the zend's default cache is working (able to see the files in cache folder)

Can anybody, please help me on this, whether I have to make any other changes to the core.

Thanks,
Bala

 
LX666 replied on at Permalink Reply
Not sure, if it applies to your problem, but I had a similar problem until I figured out that on my Debian machine there are two PHP libraries with support for memcached. One is named php5-memcache, and the other php5-memcached (notice the 'd'). Concrete - or to be more specific - Zend framework) only uses the first, php5-memcache, on my machine. php5-memcached will not do the job. If you have a debian based machine (or some ubuntu flavour), you may have a look with

$ dpkg -l | grep php

which PHP packages are installed.