﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
13573	Cached template loader can return incorrect template	Chris Lamb	nobody	"The cached.Loader's `find_template` method constructs a cache key based solely on the requested template name and does not include the `template_dirs`. This results in `find_template` returning the incorrect template where a  template with the same `template_name` was previously loaded and cached from a different set of `template_dirs`. That is to say, the function is overly non-injective.

For example, the following snippets return the __same__ `Template`. when they should return a different template for `templates/foo/file.html` and `templates/bar/file.html` respectfully:

{{{
#!python
from django.template import loader
a = loader.find_template('file.html', ('templates/foo',))
b = loader.find_template('file.html', ('templates/bar',))
}}}

Patch attached."		closed	Template system	1.2		fixed			Accepted	1	0	1	0	0	0
