XF 1.2 Improving caching with Memcached...

Moddis

Active member
One of the sites that's running on the same server as a xenforo required Memcached for caching...

I remember reading somewhere that Memcached is optimal for caching forums and I was just wondering if its easy enough to enable it with xenforo since I will be installing it anyway. More importantly, if i install Memcached on the server and leave xenforo forums as is without configuring anything, will it effect them in any way(negatively).

Thanks!
 
Thanks. I always though that I at least had some default caching mechanism but I guess not since my config file is only limited to db config.

Anyway, looks simple enough to enable, after installing and running memcached, just paste the code into the code file:
Code:
$config['cache']['backend'] = 'Memcached';
$config['cache']['backendOptions'] = array(
    'compression' => false,
    'servers' => array(
        array(
            // your memcached server IP /address
            'host' => 'localhost',
          
            // memcached port
            'port' => 11211,
        )
    )
);

Also, would be advantageous to include the Front-end caching as well and merge the top and bottom code? Is there any packages that need to be installed on the server for this Front-end to work?
Code:
$config['cache']['enabled'] = true;
$config['cache']['frontend'] = 'Core';
$config['cache']['frontendOptions']['cache_id_prefix'] = 'xf_';
 
Top Bottom