Update pipeline storage class.
Review Request #11979 — Created Jan. 22, 2022 and submitted — Latest diff uploaded
The old
PipelineCachedStorage
class has been removed, because Django
removed theCachedStaticFilesStorage
class. The reasoning here is that
this storage backend had non-specified "intractable problems". Django
advises to switch toManifestStaticFilesStorage
, and Pipeline does
have a storage class that inherits from this. This class does the same
hashing for filenames that the old cached storage does. The major
difference is that it also looks for those files in the manifest file.
This can be disabled via a class attribute, so I've added a subclass of
it that uses the backend for its hashing but turns off manifest
checking.
Ran unit tests.