Opened 9 years ago

Closed 9 years ago

#26452 closed Cleanup/optimization (fixed)

Load middleware on server start rather than on first request

Reported by: David Evans Owned by: nobody
Component: HTTP handling Version: dev
Severity: Normal Keywords:
Cc: Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: yes
Easy pickings: no UI/UX: no

Description

This was discussed in more detail on django-dev but, briefly, the reasons for needing lazily initialization of middleware on first request no longer hold and it makes more sense to do this on application start up.

The suggestion got +1s from at least two core devs (Aymeric and Florian).

Proposed patch to follow imminently.

Change History (3)

comment:1 by David Evans, 9 years ago

Has patch: set

comment:2 by Tim Graham, 9 years ago

Component: Core (Other)HTTP handling
Patch needs improvement: set
Summary: Remove lazy initialization of middlewareLoad middleware on server start rather than on first request
Triage Stage: UnreviewedAccepted
Version: 1.9master

Left a few comments for improvement on the PR.

comment:3 by Tim Graham <timograham@…>, 9 years ago

Resolution: fixed
Status: newclosed

In 99bb7fcc:

Fixed #26452 -- Loaded middleware on server start rather than on first request.

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