XF 1.5 Trying to get memecached running but having issues


Active member

My dedicated server host installed memecache for me:

I also saw that memcache was running on the old server. This was installed on the new server, but not running. I enabled this and installed the matching PHP modules for PHP 7.0 and 7.1 so that your forum can take advantage of memcache, it now will be able.

So I found this to be added to config.php and added it:

$config\['cache'\]\['backend'\] = 'Memcached';
$config\['cache'\]\['backendOptions'\] = array(
'compression' => false,
'servers' => array(
// your memcached server IP /address
'host' => 'localhost',

// memcached port
'port' => 11211,

The site immediately threw an error "unexpected error please try again later"

So, I am a bit stuck here if anyone has suggestions, thanks!


Well-known member
All of them. You only need backslashes in php when its something inside of a string like

$varliable = "this is a string with \"quote\" characters.";