By deferring the checks until the ''process_response'' phase we can make
sure that we only pay the price for urls that actually need a slash
appended (that is to say would actually return a 404).
Pull request:
https://github.com/django/django/pull/4574
--
Ticket URL: <https://code.djangoproject.com/ticket/24720>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* needs_docs: => 0
* stage: Unreviewed => Accepted
* needs_tests: => 0
* needs_better_patch: => 1
--
Ticket URL: <https://code.djangoproject.com/ticket/24720#comment:1>
* needs_better_patch: 1 => 0
--
Ticket URL: <https://code.djangoproject.com/ticket/24720#comment:2>
* needs_docs: 0 => 1
--
Ticket URL: <https://code.djangoproject.com/ticket/24720#comment:3>
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"434d309ef6dbecbfd2b322d3a1da78aa5cb05fa8" 434d309e]:
{{{
#!CommitTicketReference repository=""
revision="434d309ef6dbecbfd2b322d3a1da78aa5cb05fa8"
Fixed #24720 -- Avoided resolving URLs that don't end in a slash twice in
CommonMiddleware.
This speeds up affected requests by about 5%.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/24720#comment:4>