XF 1.5 APCu and PHP OPcache

Nirjonadda

Well-known member
I am using PHP 7.1.2 , I installed Zend OPcache and APCu. How can I use APCu? Zend OPcache support and APCu as user cache.

If I add this to my config.php then does work the Zend OPcache and APCu cache?

Code:
$config['cache']['enabled'] = true;
$config['cache']['cacheSessions'] = true;
$config['cache']['backend'] = 'APCu';
$config['cache']['frontend'] = 'Core';
$config['cache']['frontendOptions']['cache_id_prefix'] = 'xf_';
 
APCu exposes itself with APC's interface, so you'd configure it as APC here: https://xenforo.com/help/cache/

(Note that there is a check for the APC extension internally in the cache code. I don't recall how APCu exposes itself within PHP, so it's possible this may fail and another cache backend would be needed.)
 
Back
Top Bottom