main/storage: Switch from Cached to ManifestStaticFilesStorage

Django explicitly recommends against using CachedStaticFilesStorage,
partially because it performs worse.  It also breaks our tests with our
Minified subclassing of it.

Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
This commit is contained in:
Johannes Löthberg 2018-01-02 09:14:41 +01:00 committed by Jelle van der Waa
parent f442bc42f7
commit 48ff9f907a

View File

@ -1,12 +1,12 @@
import cssmin
import jsmin
from django.contrib.staticfiles.storage import CachedStaticFilesStorage
from django.contrib.staticfiles.storage import ManifestStaticFilesStorage
from django.core.files.base import ContentFile
from django.utils.encoding import smart_str
class MinifiedStaticFilesStorage(CachedStaticFilesStorage):
class MinifiedStaticFilesStorage(ManifestStaticFilesStorage):
"""
A static file system storage backend which minifies the hashed
copies of the files it saves. It currently knows how to process