#33588: @never_cache and @cache_page decorators are applied out of order for
TemplateResponse.
-------------------------------------+-------------------------------------
     Reporter:  Jacek Wojna          |                    Owner:  nobody
         Type:  Bug                  |                   Status:  new
    Component:  Core (Cache system)  |                  Version:  4.0
     Severity:  Normal               |               Resolution:
     Keywords:                       |             Triage Stage:  Accepted
  cache,never_cache,cache_page,TemplateResponse,make_middleware_decorator|
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Changes (by Mariusz Felisiak):

 * cc: Carlton Gibson (added)
 * stage:  Unreviewed => Accepted


Comment:

 Thanks, sounds valid. Unfortunately other decorators are probably also
 affected e.g. `@cache_control`  (see also #11479 about `@last_modified`).
 As far as I'm aware, we could fix both tickets by adding a few hooks to
 `FetchFromCacheMiddleware` and `UpdateCacheMiddleware` and use them in the
 `@cache_page` decorator instead of relying directly on the
 `CacheMiddleware`.

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

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/0107017fac3f981d-36e21b9d-ded6-4288-81a9-4cc6e4fed959-000000%40eu-central-1.amazonses.com.

Reply via email to