File cache... where?

Gladius

Well-known member
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
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:

Rich (BB 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
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?
 

Jake Bunce

XenForo moderator
Staff member
Just check the directory to see that data is being written. Then you know it's working.
 

Gladius

Well-known member
OK, I'd still like to know if there's any alternative to file cache that works with suPHP, though. :D
 
Top