memcached XF?

x4rl

Well-known member
Can memcached be used with XenForo i cant seem to find any posts about it?

Cheers
 
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
     )
);
 
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
 
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)
 
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
 
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?
 
Top Bottom