Commit 9cd0771f by Ned Batchelder

Merge pull request #1272 from edx/ned/remove-cache-warning-from-tests

Use a better metadata_cache_key
parents 93edfb0b 192222f2
......@@ -246,7 +246,9 @@ def location_to_query(location, wildcard=True):
return query
metadata_cache_key = attrgetter('org', 'course')
def metadata_cache_key(location):
"""Turn a `Location` into a useful cache key."""
return u"{0.org}/{0.course}".format(location)
class MongoModuleStore(ModuleStoreBase):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment