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

File cache... where?

Gladius

Well-known member
#1
So I've turned file caching on...

Code:
$config['cache']['enabled'] = true;
$config['cache']['frontend'] = 'Core';
$config['cache']['frontendOptions']['cache_id_prefix'] = 'xf_';
$config['cache']['cacheSessions'] = true;
$config['cache']['backend'] = 'File';
But where's the cache kept? I can't find it, heh. Is there some way to check that it's all working as it should?

Initially I wanted to go for XCache but I'd have to disable suPHP which I'm not keen on for security reasons... I don't suppose there's an alternative to file cache that works with suPHP?
 

Jake Bunce

XenForo moderator
Staff member
#2
For reference:
http://framework.zend.com/manual/1.12/en/zend.cache.backends.html#zend.cache.backends.file

By default the "cache_dir" is the system tmp directory. But you can change it by specifying backendOptions:

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

$config['cache']['cacheSessions'] = true;

$config['cache']['backend'] = 'File';
$config['cache']['backendOptions'] = array(
	'cache_dir' => '/path/to/cache/dir/'
);
 

Gladius

Well-known member
#3
Thanks... is there some way to check that both front and back end are working? And is there any alternative to file cache that works with suPHP?