id summary reporter owner description type status component version severity resolution keywords cc stage has_patch needs_docs needs_tests needs_better_patch easy ui_ux 31654 Memcached key validation raises InvalidCacheKey with clunky message. Tim McCormack Mariusz Felisiak "On Django 2.2.13 the code for `memcache_key_warnings` in `django/core/cache/backends/base.py` has a bad format string that results in raising an exception rather than just producing a warning. This can be reproduced with a memcached key with a space in it, e.g. `""foo bar""`. This code was present before the 2.2.13 release, but becomes more exposed with that release, since it begins validating cache keys. I think it's as simple as removing the `, CacheKeyWarning`." Bug closed Core (Cache system) 2.2 Release blocker fixed memcached Accepted 1 0 0 0 0 0