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

XF 1.1 Cache Question

Discussion in 'XenForo Questions and Support' started by MattW, Mar 19, 2012.

  1. MattW

    MattW Well-Known Member

    I've switched my server from suPHP to fcgi, and installed Xcache, so I can now make use of the caching properly with Xenforo.

    I've got a question with regards to the front end options.

    This is what I've got set in my Config file:
    $config['cache']['enabled'] = true;
    $config['cache']['frontend'] = 'Core';
    $config['cache']['frontendOptions']['cache_id_prefix'] = 'xf_';
    $config['cache']['cacheSessions'] = true;
    $config['cache']['backend'] = 'xcache';
    In less than 2 hours, there are almost 2000 files in /tmp
    z22se@z22se.co.uk [/var/tmp]# ls -al xf_* | wc -l
    My question is, am I OK to run cleantmp on these and remove them after X hours / days?
  2. Mike

    Mike XenForo Developer Staff Member

    Are you sure it's actually using Xcache? Your backend value may well be wrong - it should be 'Xcache' (capital X). It sounds like it may be falling back to file caching.
  3. MattW

    MattW Well-Known Member

    I can see pages in the xcache admin, and the files in /tmp haven't increased anymore.



    I've changed my config file read Xcache just incase.
  4. Mike

    Mike XenForo Developer Staff Member

    Oh, I assumed they were still being made - that would indicate you were using the File caching method. No reason not to remove them.
    MattW likes this.
  5. MattW

    MattW Well-Known Member

    Ah OK, it may have been using File as I was getting Xcache configured up. I'll remove them and see what happens ;)

Share This Page