Anonymous committed 0b89977

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

  • Participants
  • Parent commits c9deaf1

Comments (0)

Files changed (1)

File dogpile/cache/

             :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)
             async_creator = None