• 
      

    Add utility functions for clearing template-related caches.

    Review Request #8703 — Created Feb. 1, 2017 and submitted

    Information

    Djblets
    release-0.10.x
    0a4c829...

    Reviewers

    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

    reviewbotreviewbot
    reviewbot
    1. 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
      
      
      
      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
      
      
    2. djblets/template/tests/test_caches.py (Diff revision 1)
       
       
      Show all issues
       local variable 'template' is assigned to but never used
      
    3. 
        
    chipx86
    reviewbot
    1. 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
      
      
    2. 
        
    david
    1. Ship It!
    2. 
        
    chipx86
    Review request changed
    Status:
    Completed
    Change Summary:
    Pushed to release-0.10.x (fdb325c)