Avoid passing a generator expression to cache.get_many()
Generator expressions passed to the memcached backend's implementation of get_many() are exhausted prematurely. This results in KeyErrors when the backend tries to map keys returned by memcached back to keys passed by application code. See https://github.com/django/django/blob/stable/1.8.x/django/core/cache/backends/memcached.py/#L99. LEARNER-382
Showing
Please
register
or
sign in
to comment