Problem when using memcached

rhodes

Active member
I have activated memcached on my managed server. According to my web host, the host name for using the service is "memcached". I have now added this entry to my config.php.

Code:
$config['cache']['enabled'] = true;
$config['cache']['sessions'] = true;
$config['cache']['config'] = [
    'server' => 'memcached'
];
$config['cache']['provider'] = 'Memcached';
As a result, my forum no longer works. What is my mistake?
 
Looks like it is your 'server' =>.
My config:
Code:
// MemCache
$config['cache']['enabled'] = true;
$config['cache']['sessions'] = true;
$config['cache']['config'] = [
    'server' => '127.0.0.1'
];
$config['cache']['provider'] = 'Memcached';

Is Memcached installed?
mem2.webp

To check if it's caching:
[root@server ~]# telnet localhost 11211

Reply:
Code:
Trying ::1...
telnet: connect to address ::1: Connection refused
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.

Command:
stats

Changes when caching:
mem3.webp
 
Last edited:
Back
Top Bottom