From 32f6822ce514402024e8fd5e32297f801cad2da2 Mon Sep 17 00:00:00 2001 From: Byron Jones Date: Mon, 23 Sep 2013 15:12:11 +0800 Subject: Bug 919416: set STAT_TTL in template provider to > 1 second --- Bugzilla/Template.pm | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Bugzilla/Template.pm') diff --git a/Bugzilla/Template.pm b/Bugzilla/Template.pm index 2bd2c2ee9..434e49da5 100644 --- a/Bugzilla/Template.pm +++ b/Bugzilla/Template.pm @@ -594,6 +594,10 @@ sub create { COMPILE_DIR => bz_locations()->{'template_cache'}, + # Don't check for a template update until 1 hour has passed since the + # last check. + STAT_TTL => 60 * 60, + # Initialize templates (f.e. by loading plugins like Hook). PRE_PROCESS => ["global/initialize.none.tmpl"], -- cgit v1.2.3-24-g4f1b