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

XF 1.5 Cache

Discussion in 'XenForo Questions and Support' started by madness85, May 6, 2016.

  1. madness85

    madness85 Active Member

    Cache Front-End
    Configuring the front-end is easy, and involves simply adding the following lines to your library/config.php file:

    $config['cache']['enabled'] = true;
    $config['cache']['frontend'] = 'Core';
    $config['cache']['frontendOptions']['cache_id_prefix'] = 'xf_';



    File Back-End
    The simplest kind of cache back-end is a simple file store, which stores cache data as files in the temporary directory of your server.

    Configuration is equally simple:

    $config['cache']['backend'] = 'File';

    Few questions

    1) Which is better out of the above.
    2) All I need to do is add either of them to config and they will work, For example I don't need to edit the second one "file" do i?
    3) how will I clear cache?

    Thanks for your help guys
     
  2. Jeremy P

    Jeremy P Well-Known Member

    You need both a front-end and back-end for the cache to work. I don't recommend the file back-end, any performance improvements it brings are likely to be negligible. Go with memcached or APC(u) instead, if you can. XenForo will generally manage the cache automatically (but I hear this might not be the case with the file cache, which again, I would recommend against).
     
    Last edited: May 7, 2016
    madness85 likes this.
  3. madness85

    madness85 Active Member

    So your saying i would need to add both to config like this:

    $config['cache']['enabled'] = true;
    $config['cache']['frontend'] = 'Core';
    $config['cache']['frontendOptions']['cache_id_prefix'] = 'xf_';
    $config['cache']['backend'] = 'File';

    I will look into memcached :)
     
  4. madness85

    madness85 Active Member

    When I add the above to my config arrowchat disappears?
     

Share This Page