Skip to content

Commit

Permalink
[4.0.x] Fixed #33544 -- Expanded the TEMPLATES section of the Deploym…
Browse files Browse the repository at this point in the history
…ent checklist.

Clarified that the cached template loader is enabled by default when
DEBUG = False.

Backport of 5cc9464 from main
  • Loading branch information
Sammeeey authored and carltongibson committed Mar 22, 2022
1 parent c0a34be commit 280661b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions docs/howto/deployment/checklist.txt
Expand Up @@ -207,8 +207,10 @@ This helps a lot on virtualized hosts with limited network performance.
--------------------

Enabling the cached template loader often improves performance drastically, as
it avoids compiling each template every time it needs to be rendered. See the
:ref:`template loaders docs <template-loaders>` for more information.
it avoids compiling each template every time it needs to be rendered. When
:setting:`DEBUG = False <DEBUG>`, the cached template loader is enabled
automatically. See :class:`django.template.loaders.cached.Loader` for more
information.

Error reporting
===============
Expand Down

0 comments on commit 280661b

Please sign in to comment.