#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 Changed 13 months ago by Tim Graham

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 Changed 13 months ago by Tim Graham

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

comment:3 Changed 13 months ago by Collin Anderson

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