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

XF 1.4 Setting up Cache

Discussion in 'XenForo Questions and Support' started by Crimson, Dec 9, 2014.

  1. Crimson

    Crimson Member

    Do I only add the following to the config file to set up a cache?
    Code:
    $config['cache']['enabled'] = true;
    $config['cache']['frontend'] = 'Core';
    $config['cache']['frontendOptions']['cache_id_prefix'] = 'xf_';
     
  2. MattW

    MattW Well-Known Member

    Crimson likes this.
  3. Crimson

    Crimson Member

    I'm not too sure. APC, from the looks of it. :)

    Do I have to inquire with my current host first? I'm with MDD Hosting.

    In the end, I just want my forum to load and run smoother without using too much resource.
     
  4. Crimson

    Crimson Member

    Anyone?
     
  5. MattW

    MattW Well-Known Member

    Have you got APC installed on the server?
     
    Crimson likes this.
  6. Crimson

    Crimson Member

    I'm on shared hosting with MDD.

    Should I verify with them? :eek:
     
  7. MattW

    MattW Well-Known Member

    If you are on shared hosting, then it's more than likely not installed, and none of the other caching mechanisms will be either. Only thing you can do is run the File cache.
     
    Crimson likes this.
  8. Crimson

    Crimson Member

    So just pop this into the config file?

    Code:
    $config['cache']['enabled'] = true;
    $config['cache']['frontend'] = 'Core';
    $config['cache']['frontendOptions']['cache_id_prefix'] = 'xf_';
     
  9. MattW

    MattW Well-Known Member

    No, you also need to add the File cache setting in
    PHP:
    $config['cache']['backend'] = 'File';
     
    Crimson likes this.
  10. Crimson

    Crimson Member

    Thanks a bunch, Matt! :)

    So the end product would look like this, right?

    Code:
    $config['cache']['enabled'] = true;
    $config['cache']['frontend'] = 'Core';
    $config['cache']['frontendOptions']['cache_id_prefix'] = 'xf_';
    $config['cache']['backend'] = 'File';
     
  11. MattW

    MattW Well-Known Member

    Crimson likes this.

Share This Page