#750 CompilerFilter fails with UnicodeDecodeError when cache is used

This commit is contained in:
Andrey Kolpakov 2016-03-12 22:47:02 +01:00
parent 38cbfdb389
commit 19938a7da7
1 changed files with 1 additions and 1 deletions

View File

@ -221,7 +221,7 @@ class CachedCompilerFilter(CompilerFilter):
key = self.get_cache_key()
data = cache.get(key)
if data is not None:
return data
return smart_text(data)
filtered = super(CachedCompilerFilter, self).input(**kwargs)
cache.set(key, filtered, settings.COMPRESS_REBUILD_TIMEOUT)
return filtered