Speeding up XenForo: turning on caching
Turn on
To enable it, add the following to /library/config.php:
$config['cache']['frontend'] = 'Core';
$config['cache']['frontendOptions'] = array('caching' => true,
'automatic_serialization' => true,
'lifetime' => 1800
);
FrontendOptions help.
Next we need to choose which caching mechanism to use. Add the configuration we need to config.php:
Memcached:
$config['cache']['backend'] = 'Memcached';
$config['cache']['backendOptions'] = array(
'backendOptions'=>array(
'servers' =>array(
array(
'host' => 'localhost', // your memcached server ip /address
'port' => 11211 // memcached port
)
),
'compression' => false
)
);
APC:
$config['cache']['backend'] = 'Apc';
$config['cache']['backendOptions'] = array();
File system:
$config['cache']['backend'] = 'File';
$config['cache']['backendOptions'] = array('cache_dir' => 'D:\xampp\xampp\htdocs\xf\upload\library\cache');
Of course, the directory must be writable.
Help for caching backends.