]> git.ipfire.org Git - thirdparty/jinja.git/commitdiff
Increased cache size to 400.
authorArmin Ronacher <armin.ronacher@active-4.com>
Thu, 28 Aug 2014 07:10:22 +0000 (09:10 +0200)
committerArmin Ronacher <armin.ronacher@active-4.com>
Thu, 28 Aug 2014 07:10:22 +0000 (09:10 +0200)
CHANGES
jinja2/environment.py

diff --git a/CHANGES b/CHANGES
index d4f3c3bdf986dc182cf99ea659f4e622cd39c158..8d9802a1f4313addd0008592e24e0437cd740162 100644 (file)
--- a/CHANGES
+++ b/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
 -------------
index 67a3d0ef3cc1f4e0ad39d56da585a505b0de059f..06156b8a76d020025026b2478aff34f6826800e3 100644 (file)
@@ -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!!