Return-Path: X-Original-To: apmail-incubator-allura-commits-archive@minotaur.apache.org Delivered-To: apmail-incubator-allura-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 415CB10AE8 for ; Wed, 29 Jan 2014 22:06:16 +0000 (UTC) Received: (qmail 22824 invoked by uid 500); 29 Jan 2014 22:06:14 -0000 Delivered-To: apmail-incubator-allura-commits-archive@incubator.apache.org Received: (qmail 22774 invoked by uid 500); 29 Jan 2014 22:06:13 -0000 Mailing-List: contact allura-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: allura-dev@incubator.apache.org Delivered-To: mailing list allura-commits@incubator.apache.org Received: (qmail 22764 invoked by uid 99); 29 Jan 2014 22:06:13 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 29 Jan 2014 22:06:13 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id 7B4A69109D8; Wed, 29 Jan 2014 22:06:13 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: johnsca@apache.org To: allura-commits@incubator.apache.org Message-Id: <902d62a30a714cd1baa3ea61e89dfc32@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: git commit: [#7106] cache all jinja templates by default, not just 50 (prior default). configurable. Date: Wed, 29 Jan 2014 22:06:13 +0000 (UTC) Updated Branches: refs/heads/master 782f0c05e -> 8ba6c0a17 [#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/master Commit: 8ba6c0a17fa35e43c9bee7148aeed1c1cb8c218f Parents: 782f0c0 Author: Dave Brondsema Authored: Tue Jan 28 03:55:56 2014 +0000 Committer: Cory Johns 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