Configure or install?
sorry I wasnt clear - its already installed on my sever, I just wasnt sure what was best to put in the xenforo config.php file
$config['cache']['backend'] = 'xcache';
$config['cache']['enabled'] = true;
$config['cache']['cacheSessions'] = true;
$config['cache']['backend'] = 'File';
$config['cache']['backendOptions'] ['cache_dir'] = '/path/to/cache';
$config['cache']['frontend'] = 'Core';
$config['cache']['frontendOptions'] ['cache_id_prefix'] = 'xf_';
$config['cache'] = array(
'enabled' => true,
'frontend' => 'Core',
'frontendOptions' => array(
'caching' => true,
'automatic_serialization' => false,
'cache_id_prefix' => 'you_prefix_',
'lifetime' => 18000
),
'backend' => 'Xcache',
'backendOptions' => array(),
'cacheSessions' => true
);
$config['cache']['backendOptions']['hashed_directory_level'] = '1';
I have this.
Code:$config['cache']['enabled'] = true; $config['cache']['cacheSessions'] = true; $config['cache']['backend'] = 'File'; $config['cache']['backendOptions'] ['cache_dir'] = '/path/to/cache'; $config['cache']['frontend'] = 'Core'; $config['cache']['frontendOptions'] ['cache_id_prefix'] = 'xf_';
I'm just using simple file caching though as I'm on a shared server.
We are on a good sized VPS, however the host is telling us we cant use the caching feature because;
To install one, they need to disable Automatic Updates, mod_suphp will be changed with mod_php and these are not recommended due to high security risks.
Any suggestions?
I set @Volion up with mod_ruid2 and Xcache a few months back now. No issues with it, and I've had it on my server for almost 18 months.You can use dso and get speed+security at the same time by using mod_ruid
It is similar to suphp in terms of security. Not as secure as suphp but more secure than mod_php. You can also use caches with it unlike suphp
I'm using mod ruid + xcache on my server for a long time. It is fast because it is dso and I have no problems so far.
We use essential cookies to make this site work, and optional cookies to enhance your experience.