#23516: ifchanged no longer works within an included template
---------------------------------+------------------------------------
Reporter: dracos | Owner: nobody
Type: Bug | Status: new
Component: Template system | Version: 1.7
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
---------------------------------+------------------------------------
Comment (by prestontimmons):
This may not be the right fix, but a potential solution is to make the
include tag cache parsed template objects:
https://github.com/prestontimmons/django/compare/ticket-23516
This also speeds up rendering when the same template is included multiple
times. Some basic timing gave me these results:
cached: 1.96s
non-cached: 0.25s
This was from rendering a filesystem template 100 times that contained a
forloop to include another template 100 times.
I thought about this solution when I noticed this behavior doesn't appear
when using the cached loader.
--
Ticket URL: <https://code.djangoproject.com/ticket/23516#comment:5>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/064.297f49d31ae9866e30686d427cd5c0f9%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.