MyBB Community Forums
Memcached and config.php in mybb - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: 1.8 Support (https://community.mybb.com/forum-175.html)
+--- Forum: General Support (https://community.mybb.com/forum-176.html)
+--- Thread: Memcached and config.php in mybb (/thread-223215.html)



Memcached and config.php in mybb - codedude - 2019-05-29

So when using memcached, do we need to change memcache to memcached in inc/config.php?

This part:
$config['memcache']['host'] = 'localhost';
$config['memcache']['port'] = 11211;
to this:
$config['memcached']['host'] = 'localhost';
$config['memcached']['port'] = 11211;

or it will work with
$config['cache_store'] = 'memcached';

/**
 * Memcache configuration
 *  If you are using memcache or memcached as your
 *  data-cache, you need to configure the hostname
 *  and port of your memcache server below.
 *
 * If not using memcache, ignore this section.
 */

$config['memcache']['host'] = 'localhost';
$config['memcache']['port'] = 11211;



RE: Memcached and config.php in mybb - .m. - 2019-05-29

it should work with $config['cache_store'] = 'memcached';


RE: Memcached and config.php in mybb - codedude - 2019-05-29

(2019-05-29, 02:45 PM).m. Wrote: it should work with $config['cache_store'] = 'memcached';

Yes, you are right. Thanks.

One more question to not open a new thread, it appears smilies are not cached and area manually loaded in debug info. Why is it not cached and I have deleted default smilies and added around 30~ other.


RE: Memcached and config.php in mybb - .m. - 2019-05-29

^ smilies are also cached. check with cache manager at tools & maintenance section


RE: Memcached and config.php in mybb - codedude - 2019-05-29

(2019-05-29, 03:32 PM).m. Wrote: ^ smilies are also cached. check with cache manager at tools & maintenance section

The problem was Board Announcement Manager (BAM Announcements plugin). 

Seems like its not cached and is also making smilies uncached, after removing it everything is fine now.