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

XF 1.2 Improving caching with Memcached...

Discussion in 'XenForo Questions and Support' started by Moddis, Dec 21, 2013.

  1. Moddis

    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).

  2. Brogan

    Brogan XenForo Moderator Staff Member

    Moddis likes this.
  3. Moddis

    Moddis Active Member

    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:
    $config['cache']['backend'] = 'Memcached';
    $config['cache']['backendOptions'] = array(
        'compression' => false,
        'servers' => 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?
    $config['cache']['enabled'] = true;
    $config['cache']['frontend'] = 'Core';
    $config['cache']['frontendOptions']['cache_id_prefix'] = 'xf_';

Share This Page