Template fragment cache ({% cache %}) returns 'str' object instead of 'unicode' with django.core.cache.backends.memcached.MemcachedCache backend. This yields UnicodeDecodeError if fragment contains unicode data.
If i change return value to return force_text(value) in CacheExtension everything works OK.
Template fragment cache ({% cache %}) returns 'str' object instead of 'unicode' with django.core.cache.backends.memcached.MemcachedCache backend. This yields UnicodeDecodeError if fragment contains unicode data.
If i change
return value
toreturn force_text(value)
in CacheExtension everything works OK.