MyBB Community Forums

Full Version: MemcachED or Memcache?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
I installed MemcachED in our VPS, why is it in the config.php of mybb the code is memcache and not memcachED?

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

/**
 * Memcache configuration
 *  If you are using memcache 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;

how can I use MemcachED on our board?

Huh
(2014-04-25, 03:47 PM)spammer Wrote: [ -> ]why is it in the config.php of mybb the code is memcache and not memcachED?
There are 2 different PHP extensions for accessing memcached servers. MyBB uses this one: http://www.php.net/memcache
just installed memcache PHP extension.

so is it okey if i will put "memcached" in config.php ?

Huh
(2014-04-25, 04:34 PM)spammer Wrote: [ -> ]just installed memcache PHP extension.

so is it okey if i will put "memcached" in config.php ?

Huh

I'd probably stick with whatever myBB came with and not have ed at the end in config.php. Just me though - it might just work anyways.
(2014-04-25, 04:34 PM)spammer Wrote: [ -> ]so is it okey if i will put "memcached" in config.php ?
No, why should you do this if you have installed memcache extension?
(2014-04-25, 04:46 PM)StefanT Wrote: [ -> ]
(2014-04-25, 04:34 PM)spammer Wrote: [ -> ]so is it okey if i will put "memcached" in config.php ?
No, why should you do this if you have installed memcache extension?

Sir, because after installing memcache extension the configuration in my config.php I put "memcached" (just to test)

I am wondering why is it no error?

is it a bug?

(2014-04-25, 04:39 PM)Downfall Wrote: [ -> ]
(2014-04-25, 04:34 PM)spammer Wrote: [ -> ]just installed memcache PHP extension.

so is it okey if i will put "memcached" in config.php ?

Huh

I'd probably stick with whatever myBB came with and not have ed at the end in config.php. Just me though - it might just work anyways.

yeah, I just askin because when I use memcached the board has no error message.

anyway,

thank you guys!
(2014-04-25, 04:49 PM)spammer Wrote: [ -> ]I am wondering why is it no error?
MyBB will use MySQL as cache backend when the value is invalid or not set.
(2014-04-25, 05:15 PM)StefanT Wrote: [ -> ]
(2014-04-25, 04:49 PM)spammer Wrote: [ -> ]I am wondering why is it no error?
MyBB will use MySQL as cache backend when the value is invalid or not set.

then why I get an error when I put xcache in config.php?

it should have an error message also if i put memcached
(2014-04-25, 05:32 PM)spammer Wrote: [ -> ]then why I get an error when I put xcache in config.php?
Because it's a valid value and it fails for another reason (xcache not installed?).
(2014-04-25, 05:36 PM)StefanT Wrote: [ -> ]
(2014-04-25, 05:32 PM)spammer Wrote: [ -> ]then why I get an error when I put xcache in config.php?
Because it's a valid value and it fails for another reason (xcache not installed?).

yeah xcache not installed.

another testing APC installed

and when I try to put apc in config.php I dont get error message?

/**
 * 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, xcache, or eAccelerator
 *  you can change the value below to 'files', 'memcache', 'xcache' or 'eaccelerator' from 'db'.
 */

why is it APC is not included here: Confused
Pages: 1 2