Updated Branches:
refs/heads/db/7106 [created] 8b02abc32
[#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/8b02abc3
Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/8b02abc3
Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/8b02abc3
Branch: refs/heads/db/7106
Commit: 8b02abc326f313753088e20ca5c19d836d72d7ff
Parents: b15ef35
Author: Dave Brondsema <dbrondsema@slashdotmedia.com>
Authored: Tue Jan 28 03:55:56 2014 +0000
Committer: Dave Brondsema <dbrondsema@slashdotmedia.com>
Committed: Tue Jan 28 03:55:56 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/8b02abc3/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
|