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

memcached XF?

#2
Yes. Add the following to /library/config.php
PHP:
$config['cache']['backend'] = 'Memcached';
$config['cache']['backendOptions'] = array(
    'backendOptions'=>array(
            'servers' =>array(
                            array(
                                'host' => 'localhost', // your memcached server ip /address
                                'port' => 11211        // memcached port
                            )
                        ),
             'compression' => false
     )
);
 

Wuebit

Well-known member
#3
Yes. Add the following to /library/config.php
PHP:
$config['cache']['backend'] = 'Memcached';
$config['cache']['backendOptions'] = array(
    'backendOptions'=>array(
            'servers' =>array(
                            array(
                                'host' => 'localhost', // your memcached server ip /address
                                'port' => 11211        // memcached port
                            )
                        ),
             'compression' => false
     )
);
Where would you like this big fat kiss coming your way?!
Cheers dude
 

RobParker

Well-known member
#7
To hijack this slightly, what are the advantages/disadvantages of memcache or APC? Which should I be asking our admins to install?

(APC is too short to search for on here)
 
#9
I think better go for APC because it is also a bytecode cache and this will decrease server load also (PHP will not have to compile it's scripts again and again on each request).
 

Wuebit

Well-known member
#14
memcached can cache data. APC can cache both PHP bytecode (to free PHP of obligation to compile it again and again) and data.

So, if you don't have any PHP cache on your system I suggest you try APC.
Thanks where would i find APC i googled it came up with "American Power Conversion" :/ Can both be used also on the server?
Thanks again
 

mlx

Well-known member
#17
memcached vs. APC?

Geez ... APC is an opcode cache for PHP. memcached is something totally different.

You really should be running a PHP opcode cache even if you are utilizing memcached as well.

That said ... is there a setting for a memcached prefix in XenForo? For running more than 1 XenForo installation with memcached?