R
ragtek
Guest
Zend Framework which is used in XenForo brings great Caching Methods with it.
To see all available caching methods, check = http://framework.zend.com/manual/de/zend.cache.backends.html
For example:
To activate Memcached Support add
to your config.php
Edit:
For Filecache you can use something like:
To see all available caching methods, check = http://framework.zend.com/manual/de/zend.cache.backends.html
For example:
To activate Memcached Support add
PHP:
$config['cache']['enabled'] = true;
$config['cache']['frontend'] = 'Core';
$config['cache']['frontendOptions'] = array('caching' => true,
'automatic_serialization' => true,
'lifetime' => 1800
);
$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
)
);
Edit:
For Filecache you can use something like:
PHP:
$config['cache']['enabled'] = true;
$config['cache']['backend'] = 'File';
$config['cache']['backendOptions'] = array('cache_dir' => 'D:\xampp\xampp\htdocs\xf\upload\library\cache');
$config['cache']['frontend'] = 'Core';
$config['cache']['frontendOptions'] = array('caching' => true,
'automatic_serialization' => true,
'lifetime' => 1800
);