diff options
author | Byron Jones <bjones@mozilla.com> | 2012-08-07 16:32:12 +0200 |
---|---|---|
committer | Byron Jones <bjones@mozilla.com> | 2012-08-07 16:32:12 +0200 |
commit | dd338c897e276ae9814f84205724f85926f48bbb (patch) | |
tree | d8a5cab3b76bc930f5bebdb8c36590a9f288e04a /Bugzilla | |
parent | 66b20d9e70fec2ddc148c637cbd4b454df515d0b (diff) | |
download | bugzilla-dd338c897e276ae9814f84205724f85926f48bbb.tar.gz bugzilla-dd338c897e276ae9814f84205724f85926f48bbb.tar.xz |
Backing out Bug 778631 due to breakage
Diffstat (limited to 'Bugzilla')
-rw-r--r-- | Bugzilla/Template.pm | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/Bugzilla/Template.pm b/Bugzilla/Template.pm index 4bc2c32e6..87c8696b7 100644 --- a/Bugzilla/Template.pm +++ b/Bugzilla/Template.pm @@ -40,10 +40,6 @@ use constant FORMAT_3_SIZE => [19,28,28]; use constant FORMAT_DOUBLE => '%19s %-55s'; use constant FORMAT_2_SIZE => [19,55]; -# Use a per-process provider to cache compiled templates in memory across -# requests. -our $shared_provider; - # Pseudo-constant. sub SAFE_URL_REGEXP { my $safe_protocols = join('|', SAFE_PROTOCOLS); @@ -607,10 +603,6 @@ 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/variables.none.tmpl"], @@ -981,8 +973,6 @@ sub create { 'default_authorizer' => new Bugzilla::Auth(), }, }; - $shared_provider ||= Template::Provider->new($config); - $config->{LOAD_TEMPLATES} = [ $shared_provider ]; local $Template::Config::CONTEXT = 'Bugzilla::Template::Context'; |