• 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

MattW

Well-known member
#1
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:
Code:
$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
Code:
z22se@z22se.co.uk [/var/tmp]# ls -al xf_* | wc -l
1850
My question is, am I OK to run cleantmp on these and remove them after X hours / days?
 

Mike

XenForo developer
Staff member
#2
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.
 

MattW

Well-known member
#3
I can see pages in the xcache admin, and the files in /tmp haven't increased anymore.

xcache.png

xcache2.png

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

Mike

XenForo developer
Staff member
#4
I can see pages in the xcache admin, and the files in /tmp haven't increased anymore.
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

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