Feature #282

Support for multiple memcached servers

Added by Ryan Gordon over 2 years ago. Updated about 2 years ago.

Status:Closed Start date:06/04/2009
Priority:Normal Due date:06/12/2009
Assignee:Ryan Gordon % Done:

100%

Category:Caching
Target version:1.6.0 Beta

Description

Having the ability for multiple memcache servers could lead us one step closer to attracting bigger customers. Multiple memcache servers allow for redundancy in fall-over support.

http://ideas.mybboard.net/idea/support-for-multiple-memcache-servers

Associated revisions

Revision 4650
Added by Ryan Gordon about 2 years ago

Fixes Support for multiple memcached servers (fixes:282)

History

Updated by Ryan Gordon over 2 years ago

  • Tracker changed from Bug to Feature

Updated by Ryan Gordon over 2 years ago

  • Status changed from New to Assigned

Updated by Ryan Gordon over 2 years ago

  • Status changed from Assigned to Resolved
  • % Done changed from 0 to 100

Completed in commit #4380

Updated by Ryan Gordon over 2 years ago

  • Due date set to 06/12/2009

Updated by Stefan T. over 2 years ago

  • Status changed from Resolved to Closed

Updated by Stefan T. about 2 years ago

  • Status changed from Closed to Feedback

This does not work because this code is wrong:

        foreach($mybb->config['memcache'] as $memcache)
        {
            if(!$memcache['memcache']['host'])
            {
                die("Please configure the memcache settings in inc/config.php before attempting to use this cache handler");
            }

            if(!$memcache['memcache']['port'])
            {
                $memcache['memcache']['port'] = "11211";
            }

            $this->memcache->addServer($mybb->config['memcache_host'], $mybb->config['memcache_port']);

            if(!$this->memcache)
            {
                die("Unable to connect to the memcache server on {$memcache['memcache_host']}:{$memcache['memcache_port']}. Are you sure it is running?");
            }
        }

There is no $memcache['memcache'].

Updated by Ryan Gordon about 2 years ago

  • Status changed from Feedback to Resolved

Applied in changeset r4650.

Updated by Stefan T. about 2 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF