Opened 7 years ago

Closed 7 years ago

#27847 closed New feature (wontfix)

Allow caching form templates when DEBUG=True

Reported by: Collin Anderson Owned by: nobody
Component: Forms Version: 1.11
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description (last modified by Tim Graham)

Template-based widget rendering is super slow... can I add a CachedDjangoTemplates render?

Change History (3)

comment:1 by Tim Graham, 7 years ago

Description: modified (diff)
Type: UncategorizedNew feature

Are you are having performance problems in development? If you didn't notice, in 1.11, "the cached template loader is now enabled if DEBUG is False and OPTIONS['loaders'] isn’t specified." That makes the proposed loader class only useful in development since DjangoTemplates is equivalent to CachedDjangoTemplates if DEBUG=False.

comment:2 by Tim Graham, 7 years ago

Summary: Cache Form TemplatesAllow caching form templates when DEBUG=True

comment:3 by Collin Anderson, 7 years ago

Resolution: wontfix
Status: newclosed

Ahh. Yes, I only tested the performance in development with debug=True. In that case I don't think it's worth adding this. I'll close the ticket.

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