MyBB Documentation

Cache Handlers

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

    db

    The default cache handler.

  • APC

    apc

    Please note, APC Cache Handler is no longer officially supported.

  • APCu

    apcu

    Please note, APCu is available in MyBB 1.8.23 or higher.

  • Files

    files

    Cache files are written to the filesystem within the cache/ directory as PHP files. The cache/ directory must be writeable for this cache handler to function.

  • eAccelerator

    eaccelerator

    Please note, eAccelerator is no longer officially supported.

  • Memcache

    memcache

  • Memcached

    memcached

    Please note, you will also need to set the Memcache hostname and port setting for this Cache Handler to work.

  • Redis

    redis

    Please 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.

Edit this page on GitHub