Issue Details (XML | Word | Printable)

Key: MBS-3273
Type: New Feature New Feature
Status: Closed Closed
Resolution: Fixed
Priority: Normal Normal
Assignee: Ian McEwen
Reporter: Anonymous
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
MusicBrainz Server

Avoid memcached clashing when running in shared environments

Created: 19/Aug/11 02:58 PM   Updated: 14/Jan/12 06:59 PM   Resolved: 14/Jan/12 06:59 PM
Component/s: Admin
Affects Version/s: None
Fix Version/s: Bug fixes, 2012-01-23


 Description  « Hide

Add namespace to the keys being stored in the cache to allow MB to run in shared environments sharing the Memcached server with other applications.



Sort Order: Ascending order - Click to sort in descending order
Oliver Charles added a comment - 13/Jan/12 07:59 PM

This is just about done. CACHE_MANAGER_OPTIONS passes through the 'options' section directly to Cache::Memcached::Fast, which supports a namespace (https://metacpan.org/module/Cache::Memcached::Fast#SYNOPSIS). The only bit that's problematic is WIZARD_MEMCACHED, which should be changed to use Cache::Memcached::Fast and pass all options through.


Ian McEwen added a comment - 13/Jan/12 09:08 PM

Yes, I claimed this as well as MBS-2037 so we could define a global prefix once and use it all three/four places in DBDefs along with other shared memcached options (localhost:11211 is the other shared bit in our default file). Cache::Memcached also supports the 'namespace' option, but you're right that it should also be changed to ::Fast