• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

memcached config

gmaister22

Active member
#1
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)



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
 

Liam W

Well-known member
#2
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.
 
#5
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