Question about caching with APCu on multiple Xenforo sites

Amin Sabet

Well-known member
I am a recent vBulletin -> Xenforo switcher.

With vBulletin, the config file specifies a different cache prefix for each website using APC cache (in my case, using APCu).

With Xenforo, I have my config.php for Site 1 like this:

$config['cache']['enabled'] = true;
$config['cache']['frontend'] = 'Core';
$config['cache']['frontendOptions']['cache_id_prefix'] = 'xf1_';
$config['cache']['cacheSessions'] = true;
$config['cache']['backend'] = 'Apc';

and Site 2 like:

$config['cache']['enabled'] = true;
$config['cache']['frontend'] = 'Core';
$config['cache']['frontendOptions']['cache_id_prefix'] = 'xf2_';
$config['cache']['cacheSessions'] = true;
$config['cache']['backend'] = 'Apc';

etc...

If I understand correctly, APC is the backend, whereas I am only setting a unique prefix for the frontend. Is that going to work?
 
Top