Add utility functions for clearing template-related caches.
Review Request #8703 — Created Feb. 1, 2017 and submitted
This adds some useful functions for clearing the template caches in the loaders and the template tag library caches. This supports the various caching methods used in Django 1.6 and higher. We'll be able to use this in the extension manager to safely handle cache clearing for all supported versions of Django. Unit tests were added that ensure this functionality works for all versions.
Unit tests pass for Django 1.6, 1.7, 1.8, 1.9, and 1.10.
Description | From | Last Updated |
---|---|---|
local variable 'template' is assigned to but never used |
reviewbot |
- Change Summary:
-
Fixed an unused variable.
- Commit:
-
a229058d6186dd1c488350099105f6ebf47ff2bd0a4c82921e6252bc2d0d13d45d5559c9cc32beb9
-
Tool: PEP8 Style Checker Processed Files: djblets/template/caches.py djblets/template/tests/test_caches.py tests/settings.py djblets/template/tests/templatetags/template_tests.py Ignored Files: djblets/template/tests/templatetags/__init__.py djblets/template/tests/__init__.py Tool: Pyflakes Processed Files: djblets/template/caches.py djblets/template/tests/test_caches.py tests/settings.py djblets/template/tests/templatetags/template_tests.py Ignored Files: djblets/template/tests/templatetags/__init__.py djblets/template/tests/__init__.py