memcached config

gmaister22

Active member
I just installed memcached and memcache (not sure if its needed to have em both installed, some people say its better to have em both up and running)

30jz0.png


That's what i have added in the config file:
Code:
$config['cache']['enabled'] = true;
$config['cache']['frontend'] = 'Core';
$config['cache']['frontendOptions']['cache_id_prefix'] = 'xf_';
$config['cache']['backend'] = 'Memcached';
$config['cache']['backendOptions'] = array(
    'compression' => false,
    'servers' => array(
        array(
            // your memcached server IP /address
            'host' => 'localhost',
           
            // memcached port
            'port' => 11211,
        )
    )
);

But when i save it, i get "An unexpected Error occurred. Please try again later"

What's wrong? :S
 
Did you start memcache?

Also, I don't believe you installed it. You installed the PECL, but I believe you also have to install the main executable onto the server.
 
Do you have multiple servers with a load balancer?
I've been reading about memcache for while. seems like there is no point installing memcache in a single server environment.
someone please correct me if i'm wrong
 
@Earl, memcached is a must (even on a single server), if you cache the sessions.
I use it in combination with OPcache in PHP 5.5.7, zero fragmentation. Some reading material, keep going on the thread to see all logic behind.
 
  • Like
Reactions: rdn
Top Bottom