mirror of
https://gitee.com/openharmony/third_party_jinja2
synced 2024-11-23 15:19:46 +00:00
Increased cache size to 400.
This commit is contained in:
parent
c97fa109d3
commit
85820fceb8
1
CHANGES
1
CHANGES
@ -19,6 +19,7 @@ Version 2.8
|
||||
- If unmarshalling of cached data fails the template will be
|
||||
reloaded now.
|
||||
- Implemented a block ``set`` tag.
|
||||
- Default cache size was incrased to 400 from a low 50.
|
||||
|
||||
Version 2.7.3
|
||||
-------------
|
||||
|
@ -193,12 +193,15 @@ class Environment(object):
|
||||
The template loader for this environment.
|
||||
|
||||
`cache_size`
|
||||
The size of the cache. Per default this is ``50`` which means
|
||||
that if more than 50 templates are loaded the loader will clean
|
||||
The size of the cache. Per default this is ``400`` which means
|
||||
that if more than 400 templates are loaded the loader will clean
|
||||
out the least recently used template. If the cache size is set to
|
||||
``0`` templates are recompiled all the time, if the cache size is
|
||||
``-1`` the cache will not be cleaned.
|
||||
|
||||
.. versionchanged:: 2.8
|
||||
The cache size was increased to 400 from a low 50.
|
||||
|
||||
`auto_reload`
|
||||
Some loaders load templates from locations where the template
|
||||
sources may change (ie: file system or database). If
|
||||
@ -254,7 +257,7 @@ class Environment(object):
|
||||
finalize=None,
|
||||
autoescape=False,
|
||||
loader=None,
|
||||
cache_size=50,
|
||||
cache_size=400,
|
||||
auto_reload=True,
|
||||
bytecode_cache=None):
|
||||
# !!Important notice!!
|
||||
|
Loading…
Reference in New Issue
Block a user