[Django] #28606: Mark CachedStaticFilesStorage as deprecated in Django 2.1

11 views
Skip to first unread message

Django

unread,
Sep 16, 2017, 7:34:31 PM9/16/17
to django-...@googlegroups.com
#28606: Mark CachedStaticFilesStorage as deprecated in Django 2.1
------------------------------------------------+------------------------
Reporter: Ed Morley | Owner: nobody
Type: Cleanup/optimization | Status: new
Component: contrib.staticfiles | Version: master
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
------------------------------------------------+------------------------
`CachedStaticFilesStorage` has a number of drawbacks, and the docs in fact
already steer people away from using it:
https://docs.djangoproject.com/en/1.11/ref/contrib/staticfiles/#django.contrib.staticfiles.storage.CachedStaticFilesStorage

An additional problem is that `HashedFilesMixin` has had to make several
compromises in order to support `CachedStaticFilesStorage` which
unfortunately also impacts users of the recommended
`ManifestStaticFilesStorage` backend (see #28604). When these compromises
were added in #24452, it was suggested that `CachedStaticFilesStorage`
should just be deprecated/removed instead.

It's now too late to mark it as deprecated for Django 2.0, but we can do
so for Django 2.1 which would end up with its removal being in Django 3.0
all the same anyway.

I started this mailing list thread about the deprecation:
https://groups.google.com/forum/#!topic/django-developers/fmfQvuHBStk

--
Ticket URL: <https://code.djangoproject.com/ticket/28606>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Sep 18, 2017, 9:43:25 AM9/18/17
to django-...@googlegroups.com
#28606: Deprecate CachedStaticFilesStorage
--------------------------------------+------------------------------------

Reporter: Ed Morley | Owner: nobody
Type: Cleanup/optimization | Status: new
Component: contrib.staticfiles | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted

Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
--------------------------------------+------------------------------------
Changes (by Tim Graham):

* stage: Unreviewed => Accepted


--
Ticket URL: <https://code.djangoproject.com/ticket/28606#comment:1>

Django

unread,
Oct 24, 2017, 5:11:35 AM10/24/17
to django-...@googlegroups.com
#28606: Deprecate CachedStaticFilesStorage
-------------------------------------+-------------------------------------
Reporter: Ed Morley | Owner: Masataka
Type: | Arai
Cleanup/optimization | Status: assigned
Component: contrib.staticfiles | Version: master

Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Masataka Arai):

* owner: nobody => Masataka Arai
* status: new => assigned


--
Ticket URL: <https://code.djangoproject.com/ticket/28606#comment:2>

Django

unread,
Nov 20, 2017, 10:22:10 AM11/20/17
to django-...@googlegroups.com
#28606: Deprecate CachedStaticFilesStorage
--------------------------------------+------------------------------------
Reporter: Ed Morley | Owner: (none)

Type: Cleanup/optimization | Status: new
Component: contrib.staticfiles | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
--------------------------------------+------------------------------------
Changes (by Masataka Arai):

* owner: Masataka Arai => (none)
* status: assigned => new


--
Ticket URL: <https://code.djangoproject.com/ticket/28606#comment:3>

Django

unread,
Oct 11, 2018, 1:33:29 AM10/11/18
to django-...@googlegroups.com
#28606: Deprecate CachedStaticFilesStorage
-------------------------------------+-------------------------------------
Reporter: Ed Morley | Owner: Gurpreet
Type: | Singh
Cleanup/optimization | Status: assigned
Component: contrib.staticfiles | Version: master

Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Gurpreet Singh):

* owner: nobody => Gurpreet Singh


* status: new => assigned


--
Ticket URL: <https://code.djangoproject.com/ticket/28606#comment:2>

Django

unread,
Oct 27, 2018, 2:20:55 AM10/27/18
to django-...@googlegroups.com
#28606: Deprecate CachedStaticFilesStorage
--------------------------------------+------------------------------------
Reporter: Ed Morley | Owner: (none)
Type: Cleanup/optimization | Status: new
Component: contrib.staticfiles | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
--------------------------------------+------------------------------------
Changes (by Gurpreet Singh):

* status: assigned => new
* owner: Gurpreet Singh => (none)


--
Ticket URL: <https://code.djangoproject.com/ticket/28606#comment:3>

Django

unread,
Oct 27, 2018, 10:43:04 AM10/27/18
to django-...@googlegroups.com
#28606: Deprecate CachedStaticFilesStorage
--------------------------------------+------------------------------------

Reporter: Ed Morley | Owner: nobody
Type: Cleanup/optimization | Status: new
Component: contrib.staticfiles | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
--------------------------------------+------------------------------------
Changes (by Tim Graham):

* has_patch: 0 => 1


Comment:

[https://github.com/django/django/pull/10570 PR]

--
Ticket URL: <https://code.djangoproject.com/ticket/28606#comment:2>

Django

unread,
Oct 27, 2018, 12:43:31 PM10/27/18
to django-...@googlegroups.com
#28606: Deprecate CachedStaticFilesStorage
-------------------------------------+-------------------------------------

Reporter: Ed Morley | Owner: nobody
Type: | Status: new
Cleanup/optimization |
Component: contrib.staticfiles | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Ready for
| checkin
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Simon Charette):

* stage: Accepted => Ready for checkin


--
Ticket URL: <https://code.djangoproject.com/ticket/28606#comment:3>

Django

unread,
Oct 27, 2018, 2:17:49 PM10/27/18
to django-...@googlegroups.com
#28606: Deprecate CachedStaticFilesStorage
-------------------------------------+-------------------------------------

Reporter: Ed Morley | Owner: nobody
Type: | Status: closed
Cleanup/optimization |
Component: contrib.staticfiles | Version: master
Severity: Normal | Resolution: fixed

Keywords: | Triage Stage: Ready for
| checkin
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Tim Graham <timograham@…>):

* status: new => closed
* resolution: => fixed


Comment:

In [changeset:"f892781b957f674806a227a10c58768f66a48c07" f892781b]:
{{{
#!CommitTicketReference repository=""
revision="f892781b957f674806a227a10c58768f66a48c07"
Fixed #28606 -- Deprecated CachedStaticFilesStorage.
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/28606#comment:4>

Django

unread,
Jan 17, 2019, 6:37:09 PM1/17/19
to django-...@googlegroups.com
#28606: Deprecate CachedStaticFilesStorage
-------------------------------------+-------------------------------------

Reporter: Ed Morley | Owner: nobody
Type: | Status: closed
Cleanup/optimization |
Component: contrib.staticfiles | Version: master

Severity: Normal | Resolution: fixed
Keywords: | Triage Stage: Ready for
| checkin
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------

Comment (by Tim Graham <timograham@…>):

In [changeset:"6713926ebe22172e50f283185f969275c326416d" 6713926e]:
{{{
#!CommitTicketReference repository=""
revision="6713926ebe22172e50f283185f969275c326416d"
Refs #28606 -- Corrected deprecation version for CachedStaticFilesStorage.
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/28606#comment:5>

Django

unread,
Jan 17, 2019, 6:37:11 PM1/17/19
to django-...@googlegroups.com
#28606: Deprecate CachedStaticFilesStorage
-------------------------------------+-------------------------------------

Reporter: Ed Morley | Owner: nobody
Type: | Status: closed
Cleanup/optimization |
Component: contrib.staticfiles | Version: master

Severity: Normal | Resolution: fixed
Keywords: | Triage Stage: Ready for
| checkin
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------

Comment (by Tim Graham <timograham@…>):

In [changeset:"a9feec5c70f41b74e2af59725aa3c4c6528b934b" a9feec5c]:
{{{
#!CommitTicketReference repository=""
revision="a9feec5c70f41b74e2af59725aa3c4c6528b934b"
[2.2.x] Refs #28606 -- Corrected deprecation version for
CachedStaticFilesStorage.

Backport of 6713926ebe22172e50f283185f969275c326416d from master
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/28606#comment:6>

Django

unread,
Sep 10, 2019, 6:19:58 AM9/10/19
to django-...@googlegroups.com
#28606: Deprecate CachedStaticFilesStorage
-------------------------------------+-------------------------------------

Reporter: Ed Morley | Owner: nobody
Type: | Status: closed
Cleanup/optimization |
Component: contrib.staticfiles | Version: master

Severity: Normal | Resolution: fixed
Keywords: | Triage Stage: Ready for
| checkin
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------

Comment (by Mariusz Felisiak <felisiak.mariusz@…>):

In [changeset:"f1894bae3071da4ee577fc40ae61491f3e03d82c" f1894bae]:
{{{
#!CommitTicketReference repository=""
revision="f1894bae3071da4ee577fc40ae61491f3e03d82c"
Refs #28606 -- Removed CachedStaticFilesStorage per deprecation timeline.
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/28606#comment:7>

Reply all
Reply to author
Forward
0 new messages