XF 1.3 Opcache

Hristo Avramov

Active member
I want to use the php build opcache. What other cache can I use with it?

Currently my config is this. I guess opcache works without configuring it in the config file.

$config['cache']['enabled'] = true;
$config['cache']['frontend'] = 'Core';
$config['cache']['frontendOptions']['cache_id_prefix'] = 'xf_';
 
Opcache is for caching PHP's opcodes. The config.php cache entries are for caching data, so it's generally unrelated. If you're going to go for something in config.php, I'd probably go memcache.
 
Okay, after I enable memcache, will the config work well?

Code:
$config['cache']['enabled'] = true;
$config['cache']['frontend'] = 'Core';
$config['cache']['frontendOptions']['cache_id_prefix'] = 'bf_';
$config['cache']['backend'] = 'memcache';
 
Back
Top Bottom