Skip to content
Myr

Increased cache size to 400.

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Armin Ronacher · committed by Armin Ronacher · parent c97fa10 · Browse files · 2 files+7 added−3 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+7 added−3 removed

  • other:+7 added−3 removed

2 files+7 added−3 removed

modified:jinja2/environment.py+6 added-3 removed
191 unmodified lines
192 `loader`193 The template loader for this environment.194195 `cache_size`196 The size of the cache. Per default this is ``50`` which means197 that if more than 50 templates are loaded the loader will clean196 The size of the cache. Per default this is ``400`` which means197 that if more than 400 templates are loaded the loader will clean198 out the least recently used template. If the cache size is set to199 ``0`` templates are recompiled all the time, if the cache size is200 ``-1`` the cache will not be cleaned.201202 .. versionchanged:: 2.8203 The cache size was increased to 400 from a low 50.204205 `auto_reload`206 Some loaders load templates from locations where the template207 sources may change (ie: file system or database). If208 `auto_reload` is set to `True` (default) every time a template is
47 unmodified lines
256 undefined=Undefined,257 finalize=None,258 autoescape=False,259 loader=None,257 cache_size=50,260 cache_size=400,261 auto_reload=True,262 bytecode_cache=None):263 # !!Important notice!!264 # The constructor accepts quite a few arguments that should be
942 unmodified lines
modified:CHANGES+1 added
17 unmodified lines
18 object that logs failures into a logger.19- If unmarshalling of cached data fails the template will be20 reloaded now.21- Implemented a block ``set`` tag.22- Default cache size was incrased to 400 from a low 50.2324Version 2.7.325-------------26(bugfix release, released on June 6th 2014)
328 unmodified lines