diff --git a/django/template/loaders/cached.py b/django/template/loaders/cached.py
index 4c25acd..1036263 100644
a
|
b
|
class Loader(BaseLoader):
|
42 | 42 | # If template directories were specified, use a hash to differentiate |
43 | 43 | key = '-'.join([template_name, hashlib.sha1('|'.join(template_dirs)).hexdigest()]) |
44 | 44 | |
45 | | if key not in self.template_cache: |
| 45 | try: |
| 46 | return self.template_cache[key], None |
| 47 | except KeyError: |
46 | 48 | template, origin = self.find_template(template_name, template_dirs) |
47 | 49 | if not hasattr(template, 'render'): |
48 | 50 | try: |