incubator-allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From john...@apache.org
Subject [07/15] git commit: [#7106] cache all jinja templates by default, not just 50 (prior default). configurable.
Date Mon, 03 Feb 2014 22:53:33 GMT
[#7106] cache all jinja templates by default, not just 50 (prior default).  configurable.


Project: http://git-wip-us.apache.org/repos/asf/incubator-allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-allura/commit/8ba6c0a1
Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/8ba6c0a1
Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/8ba6c0a1

Branch: refs/heads/cj/7085
Commit: 8ba6c0a17fa35e43c9bee7148aeed1c1cb8c218f
Parents: 782f0c0
Author: Dave Brondsema <dbrondsema@slashdotmedia.com>
Authored: Tue Jan 28 03:55:56 2014 +0000
Committer: Cory Johns <cjohns@slashdotmedia.com>
Committed: Wed Jan 29 22:06:08 2014 +0000

----------------------------------------------------------------------
 Allura/allura/config/app_cfg.py | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/8ba6c0a1/Allura/allura/config/app_cfg.py
----------------------------------------------------------------------
diff --git a/Allura/allura/config/app_cfg.py b/Allura/allura/config/app_cfg.py
index 6a60689..1661356 100644
--- a/Allura/allura/config/app_cfg.py
+++ b/Allura/allura/config/app_cfg.py
@@ -97,6 +97,7 @@ class ForgeConfig(AppConfig):
             auto_reload=config.auto_reload_templates,
             autoescape=True,
             bytecode_cache=bcc,
+            cache_size=config.get('jinja_cache_size', -1),
             extensions=['jinja2.ext.do', 'jinja2.ext.i18n'])
         jinja2_env.install_gettext_translations(pylons.i18n)
         jinja2_env.filters['filesizeformat'] = helpers.do_filesizeformat


Mime
View raw message