• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

XF 1.3 Correct way to enable XCache

polle

Active member
#1
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.
 

Karelke

Active member
#2
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';
 

MattW

Well-known member
#3
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.