1
0
mirror of https://github.com/django/django.git synced 2024-12-23 01:25:58 +00:00

Removed template_cache attribute from cached template loader.

Unused since 5d8da093a9.
This commit is contained in:
Tom Forbes 2019-01-18 23:35:00 +00:00 committed by Tim Graham
parent 709a8b861d
commit 7eb4db8732

View File

@ -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()