Code

Opened 9 years ago

Closed 9 years ago

Last modified 8 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: UI/UX:

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@… 9 years ago.

Download all attachments as: .zip

Change History (2)

Changed 9 years ago by eugene@…

comment:1 Changed 9 years ago by adrian

  • Resolution set to fixed
  • Status changed from new to closed

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

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.