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

Question about caching with APCu on multiple Xenforo sites

Discussion in 'Server Configuration and Hosting' started by Amin Sabet, Feb 18, 2015.

  1. Amin Sabet

    Amin Sabet Well-Known Member

    I am a recent vBulletin -> Xenforo switcher.

    With vBulletin, the config file specifies a different cache prefix for each website using APC cache (in my case, using APCu).

    With Xenforo, I have my config.php for Site 1 like this:

    $config['cache']['enabled'] = true;
    $config['cache']['frontend'] = 'Core';
    $config['cache']['frontendOptions']['cache_id_prefix'] = 'xf1_';
    $config['cache']['cacheSessions'] = true;
    $config['cache']['backend'] = 'Apc';

    and Site 2 like:

    $config['cache']['enabled'] = true;
    $config['cache']['frontend'] = 'Core';
    $config['cache']['frontendOptions']['cache_id_prefix'] = 'xf2_';
    $config['cache']['cacheSessions'] = true;
    $config['cache']['backend'] = 'Apc';

    etc...

    If I understand correctly, APC is the backend, whereas I am only setting a unique prefix for the frontend. Is that going to work?
     
  2. Brogan

    Brogan XenForo Moderator Staff Member

Share This Page