Opened 19 years ago

Closed 19 years ago

Last modified 18 years ago

#647 closed defect (fixed)

[patch] cache middleware blows out when gets "unmarked" response

Reported by: eugene@… Owned by: Jacob
Component: Core (Cache system) Version:
Severity: major Keywords:
Cc: Triage Stage: Unreviewed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

Cache middleware expects request._cache_update_cache attribute during process_response(). It's not always the case. Notable examples are 404 and 500 errors. Attached patch fixes the problem.

Attachments (1)

django.cache.patch (541 bytes ) - added by eugene@… 19 years ago.

Download all attachments as: .zip

Change History (2)

by eugene@…, 19 years ago

Attachment: django.cache.patch added

comment:1 by Adrian Holovaty, 19 years ago

Resolution: fixed
Status: newclosed

(In [954]) Fixed #647 -- Fixed cache middleware not to expect _cache_update_cache, in case of 404s and 500s. Thanks, Eugene

Note: See TracTickets for help on using tickets.
Back to Top