XF 1.3 Correct way to enable XCache

polle

Active member
I have this in my config and it makes nothing, not caching at all.

Code:
$config['cache'] = array(
    'enabled' => true,
    'frontend' => 'Core',
    'frontendOptions' => array(
            'caching' => true,
            'automatic_serialization' => false,
            'cache_id_prefix' => 'xenf_',
            'lifetime' => 18000
    ),
    'backend' => 'Xcache',
    'backendOptions' => array(),
    'cacheSessions' => true
);

Is that completely wrong? I cant find a decent correct example or documentation for this.

Thank you.
 
Before we switched to APC, we had Xcache running with the following config:

PHP:
$config['cache']['enabled'] = true;
$config['cache']['frontend'] = 'Core';
$config['cache']['frontendOptions']['cache_id_prefix'] = 'xf_';
$config['cache']['backend'] = 'Xcache';
 
What is your Xcache config like? Have you allocated memory to both the opcache section (xcache.size), and the var section (xcache.var_size)?

PHP:
$config['cache']['enabled'] = true;
$config['cache']['frontend'] = 'Core';
$config['cache']['frontendOptions']['cache_id_prefix'] = 'xf_';
$config['cache']['cacheSessions'] = true;
$config['cache']['backend']='Xcache';

^^ that is what I had set when using Xcache.
 
Back
Top Bottom