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:
parent
f442bc42f7
commit
48ff9f907a
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user