Merge pull request #1222 from defuz/templates_auto_reload-eq-none

Set TEMPLATE_AUTO_RELOAD default value to None
This commit is contained in:
Markus Unterwaditzer 2014-11-02 20:46:48 +01:00
commit a1b273658d
4 changed files with 39 additions and 15 deletions

View file

@ -182,12 +182,11 @@ The following configuration values are used internally by Flask:
if they are not requested by an
XMLHttpRequest object (controlled by
the ``X-Requested-With`` header)
``TEMPLATES_AUTO_RELOAD`` Flask checks if template was modified each
time it is requested and reloads it if
necessary. But disk I/O is costly and it may
be viable to disable this feature by setting
this key to ``False``. This option does not
affect debug mode.
``TEMPLATES_AUTO_RELOAD`` Whether to check for modifications of
the template source and reload it
automatically. By default the value is
``None`` which means that Flask checks
original file only in debug mode.
``EXPLAIN_TEMPLATE_LOADING`` If this is enabled then every attempt to
load a template will write an info
message to the logger explaining the