Bug #386

multiple forums memcache bug

Added by Michael Schlechtinger about 1 year ago. Updated 9 months ago.

Status:Closed Start:08/20/2009
Priority:Normal Due date:
Assigned to:Ryan Gordon % Done:

100%

Category:Other
Target version:1.4.10
Reproducibility:Always Browser:
Reported In MyBB Version:1.4.8 Database Type:
PHP Version: Database Version:

Description

I'll post this as a bug if you are using memcache and put two forums to the same memcache instance. Why you would do this? About the same reason why you might want to use one database for multiple cms in a domain.

If you have two forums in the same domain or even in different domains pointing to the same memcache server, they will access the same objects. This will affect you when setting up your forum and getting the forum data from the first forum and probably vice versa.

To replicate: Simply setup one forum in /forum1 set to use memcache. Go to "forums and posts" admin area and change categories and add two misc forums. On second forum set up in /forum2 to use memcache (same as first). If you try to access "forums and posts" you will see the listing of forum1.

Solution: allow a global key setting to separate the cache like the cookie setting(or just use that setting to prefix the objects).

Please document this in the config file for the next release. I am just testing mybb so I don't know what the existing behavior extends to beyond what i noticed.

Associated revisions

Revision 4450
Added by Ryan Gordon 12 months ago

Fixes multiple forums memcache bug (fixes:386)

History

Updated by Ryan Gordon 12 months ago

Try the solution committed in the related revision here in this ticket.

Updated by Ryan Gordon 12 months ago

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

Applied in changeset r4450.

Updated by Ryan Gordon 10 months ago

  • Assigned to set to Ryan Gordon
  • Target version set to 1.4.10

Updated by Michael Schlechtinger 9 months ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF