Commits

Anonymous committed 0b89977

Pass the original key to the async creator so we don't mangle it twice

Comments (0)

Files changed (1)

dogpile/cache/region.py

             :meth:`.CacheRegion.get_or_create_multi` - multiple key/value version
 
         """
+        orig_key = key
         if self.key_mangler:
             key = self.key_mangler(key)
 
 
         if self.async_creation_runner:
             def async_creator(mutex):
-                return self.async_creation_runner(self, key, creator, mutex)
+                return self.async_creation_runner(self, orig_key, creator, mutex)
         else:
             async_creator = None