summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Template.pm
diff options
context:
space:
mode:
authorByron Jones <bjones@mozilla.com>2013-09-23 09:12:11 +0200
committerByron Jones <bjones@mozilla.com>2013-09-23 09:12:11 +0200
commit32f6822ce514402024e8fd5e32297f801cad2da2 (patch)
treec70b3b2f370677be92705c9f10d0c5b75169d6f5 /Bugzilla/Template.pm
parentfe0d942dbac2b232146be629d91bf57b85654e97 (diff)
downloadbugzilla-32f6822ce514402024e8fd5e32297f801cad2da2.tar.gz
bugzilla-32f6822ce514402024e8fd5e32297f801cad2da2.tar.xz
Bug 919416: set STAT_TTL in template provider to > 1 second
Diffstat (limited to 'Bugzilla/Template.pm')
-rw-r--r--Bugzilla/Template.pm4
1 files changed, 4 insertions, 0 deletions
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"],