diff --git a/docs/ref/templates/api.txt b/docs/ref/templates/api.txt index b20f91e1e4e..6ce34b0b203 100644 --- a/docs/ref/templates/api.txt +++ b/docs/ref/templates/api.txt @@ -908,8 +908,10 @@ loaders that come with Django: ``Template`` in memory. The cached ``Template`` instance is returned for subsequent requests to load the same template. - This loader is automatically enabled if :setting:`DEBUG` is ``False`` and - :setting:`OPTIONS['loaders'] ` isn't specified. + This loader is automatically enabled if :setting:`OPTIONS['loaders'] + ` isn't specified and :setting:`OPTIONS['debug'] + ` is ``False`` (the latter option defaults to the value + of :setting:`DEBUG`). You can also enable template caching with some custom template loaders using settings like this:: diff --git a/docs/releases/1.11.txt b/docs/releases/1.11.txt index 9e84b869d3f..1803a3ae628 100644 --- a/docs/releases/1.11.txt +++ b/docs/releases/1.11.txt @@ -698,8 +698,9 @@ Miscellaneous 1.0) is removed. * The :class:`cached template loader ` - is now enabled if :setting:`DEBUG` is ``False`` and - :setting:`OPTIONS['loaders'] ` isn't specified. This could + is now enabled if :setting:`OPTIONS['loaders'] ` isn't + specified and :setting:`OPTIONS['debug'] ` is ``False`` + (the latter option defaults to the value of :setting:`DEBUG`). This could be backwards-incompatible if you have some :ref:`template tags that aren't thread safe `.