MyBB Community Forums

Full Version: OPCache = config.php ?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
mybb/inc    config.php <edit>

/**
 * Data-cache configuration
 *  The data cache is a temporary cache
 *  of the most commonly accessed data in MyBB.
 *  By default, the database is used to store this data.
 *
 *  If you wish to use the file system (cache/ directory), MemCache (or MemCached), xcache, APC, or eAccelerator
 *  you can change the value below to 'files', 'memcache', 'memcached', 'xcache', 'apc' or 'eaccelerator' from 'db'.
 */

$config['cache_store'] = 'opcache';


I don't think its working so is there something i am  missing?

When i open up mybb admin panel "Tools & Maintenance" Zend OPcache is showing from the screen shot below

[attachment=43648]
(2021-01-10, 12:00 AM)canadacommunity Wrote: [ -> ]mybb/inc    config.php <edit>

/**
 * Data-cache configuration
 *  The data cache is a temporary cache
 *  of the most commonly accessed data in MyBB.
 *  By default, the database is used to store this data.
 *
 *  If you wish to use the file system (cache/ directory), MemCache (or MemCached), xcache, APC, or eAccelerator
 *  you can change the value below to 'files', 'memcache', 'memcached', 'xcache', 'apc' or 'eaccelerator' from 'db'.
 */

$config['cache_store'] = 'opcache';


I don't think its working so is there something i am  missing?

When i open up mybb admin panel "Tools & Maintenance" Zend OPcache is showing from the screen shot below

Just a quick reply as I'm not very familiar with this part of the code: opcache does not appear to be a valid option based (1) on the comments in the code you shared, and (2) on lines 65-107 of inc/class_datacache.php.
I think we might've removed this at some point..

I may well be wrong. It doesn't seem to be listed on the Cache Handlers documentation for 1.8 either - https://docs.mybb.com/1.8/administration...-handlers/

Lastly, from the php documentation (https://pecl.php.net/package/ZendOpcache) OP Cache is only supported in PHP 5.5.0 or under.
(2021-01-10, 06:29 AM)Laird Wrote: [ -> ]When i open up mybb admin panel "Tools & Maintenance" Zend OPcache is showing from the screen shot below

Just a quick reply as I'm not very familiar with this part of the code: opcache does not appear to be a valid option based (1) on the comments in the code you shared, and (2) on lines 65-107 of inc/class_datacache.php.

That's what I was kinda thinking because it wasnt included in the highlighted area inside the mybb  inc/config.php file. 
Thank You for the url you provided in which shows what is accepted by default within the mybb cache store, Thanks for pointing it out to me.


(2021-01-10, 09:11 PM)Ben Wrote: [ -> ]I think we might've removed this at some point..

I may well be wrong. It doesn't seem to be listed on the Cache Handlers documentation for 1.8 either - https://docs.mybb.com/1.8/administration...-handlers/

Lastly, from the php documentation (https://pecl.php.net/package/ZendOpcache) OP Cache is only supported in PHP 5.5.0 or under.


Thanks for clarrfication, so I guess it's better to just disable Opcache and enable one like eaccelerator. Thank you very much!