In config.php:
$config['cache_driver'] = 'memcached';
$config['memcached'] = array(
'host' => '127.0.0.1',
'port' => 11211,
'weight' => 2,
);
Not strictly sure I found the right config file for memcached, its very brief:
PORT="11211"
USER="memcached"
MAXCONN="1024"
CACHESIZE="64"
OPTIONS=""
That all looks normal and fairly typical. Let me know how the external test goes, or if you’ve successfully switched to Redis. I cannot replicate your issue and can’t find a record of anyone else experiencing this problem either. It doesn’t mean that there’s not an issue, but that it seems to be environmental, so perhaps the isolated test will yield you some results.
Have not yet updated to v3, but I did finally had the opportunity to change from Memcached to Redis to see if things might work better. Unfortunately, while I have Redis working with forum software on the same server, my EE site says it can’t seem to connect to the Redis server and defaults to file cache.
Any suggestions? We’re using the pecl/redis PHP module.
Try putting this in a standalone PHP file on the server where you host ExpressionEngine. Change the config to match your Redis server settings.
<?php
error_reporting(E_ALL);
ini_set('display_errors', 1);
$config = array(
'host' => '127.0.0.1',
'password' => NULL,
'port' => 6379,
'timeout' => 0
);
$redis = new Redis();
$result = $redis->connect($config['host'], $config['port'], $config['timeout']);
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.