diff options
author | Dave Lawrence <dlawrence@mozilla.com> | 2012-08-07 23:15:05 +0200 |
---|---|---|
committer | Dave Lawrence <dlawrence@mozilla.com> | 2012-08-07 23:15:05 +0200 |
commit | f32129a482f89b9f65f8359b47a7ec62091b8e12 (patch) | |
tree | 56006d8fae407c5287974ffb7d3d1ac3165c62e8 /Bugzilla | |
parent | 07a5d9cc6661d46d91c291dc2105fb81a5cf4298 (diff) | |
download | bugzilla-f32129a482f89b9f65f8359b47a7ec62091b8e12.tar.gz bugzilla-f32129a482f89b9f65f8359b47a7ec62091b8e12.tar.xz |
Revert commit 8283
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 fb6c5ad1d..245d881d3 100644 --- a/Bugzilla/Template.pm +++ b/Bugzilla/Template.pm @@ -66,10 +66,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); @@ -621,10 +617,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/initialize.none.tmpl"], @@ -1005,8 +997,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'; |