From 7eb4db8732a3b491d4945a94a314842ba0ad8924 Mon Sep 17 00:00:00 2001 From: Tom Forbes Date: Fri, 18 Jan 2019 23:35:00 +0000 Subject: [PATCH] Removed template_cache attribute from cached template loader. Unused since 5d8da093a974f41e08573bbe0d32d5ffeaadd0ad. --- django/template/loaders/cached.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/django/template/loaders/cached.py b/django/template/loaders/cached.py index fcd2bc080b..2ee659127e 100644 --- a/django/template/loaders/cached.py +++ b/django/template/loaders/cached.py @@ -14,7 +14,6 @@ from .base import Loader as BaseLoader class Loader(BaseLoader): def __init__(self, engine, loaders): - self.template_cache = {} self.get_template_cache = {} self.loaders = engine.get_template_loaders(loaders) super().__init__(engine) @@ -90,5 +89,4 @@ class Loader(BaseLoader): def reset(self): "Empty the template cache." - self.template_cache.clear() self.get_template_cache.clear()