#647 closed defect (fixed)
[patch] cache middleware blows out when gets "unmarked" response
| Reported by: | 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)
Change History (2)
by , 20 years ago
| Attachment: | django.cache.patch added |
|---|
comment:1 by , 20 years ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
(In [954]) Fixed #647 -- Fixed cache middleware not to expect _cache_update_cache, in case of 404s and 500s. Thanks, Eugene