MyBB’s Datacache, fetched from the database by default, can be stored using different cache handlers to improve performance.
You can select which Cache Handler you would like to use on your MyBB installation by editing the configuration file (inc/config.php) and changing the value of $config['cache_store'].
For example, to use the APCu cache store, change the line to:
$config['cache_store'] = 'apcu';
Supported Cache Handlers
-
Database
dbThe default cache handler.
-
APC
apcPlease note, APC Cache Handler is no longer officially supported.
-
APCu
apcuPlease note, APCu is available in MyBB 1.8.23 or higher.
-
Files
filesCache files are written to the filesystem within the
cache/directory as PHP files. Thecache/directory must be writeable for this cache handler to function. -
eAccelerator
eacceleratorPlease note, eAccelerator is no longer officially supported.
-
Memcache
memcache -
Memcached
memcachedPlease note, you will also need to set the Memcache hostname and port setting for this Cache Handler to work.
-
Redis
redisPlease note, you will need to set the Redis hostname (
$config['redis']['host']) and port ($config['redis']['port']) setting for this Cache Handler to work.This handler is available in MyBB 1.8.23 or higher.