diff options
author | Frédéric Buclin <LpSolit@gmail.com> | 2012-11-16 18:10:32 +0100 |
---|---|---|
committer | Frédéric Buclin <LpSolit@gmail.com> | 2012-11-16 18:10:32 +0100 |
commit | 5fc1b86cfeeaf5e8e64dfbef3cd94f13a899d696 (patch) | |
tree | 78d6f36b43b9b6349af76fabeb8750af1a89f177 /Bugzilla/Template | |
parent | 7605239f64f0b47fe3e96a9be0e07700b7bb5c7c (diff) | |
download | bugs-5fc1b86cfeeaf5e8e64dfbef3cd94f13a899d696.tar bugs-5fc1b86cfeeaf5e8e64dfbef3cd94f13a899d696.tar.gz bugs-5fc1b86cfeeaf5e8e64dfbef3cd94f13a899d696.tar.bz2 bugs-5fc1b86cfeeaf5e8e64dfbef3cd94f13a899d696.tar.xz bugs-5fc1b86cfeeaf5e8e64dfbef3cd94f13a899d696.zip |
Bug 797636: Improve performance for buglists
r=dkl a=LpSolit
Diffstat (limited to 'Bugzilla/Template')
-rw-r--r-- | Bugzilla/Template/Context.pm | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Bugzilla/Template/Context.pm b/Bugzilla/Template/Context.pm index 937ac33b1..1edc0422c 100644 --- a/Bugzilla/Template/Context.pm +++ b/Bugzilla/Template/Context.pm @@ -84,6 +84,13 @@ sub stash { return $stash; } +sub filter { + my ($self, $name, $args) = @_; + # If we pass an alias for the filter name, the filter code is cached + # instead of looking for it at each call. + $self->SUPER::filter($name, $args, $name); +} + # We need a DESTROY sub for the same reason that Bugzilla::CGI does. sub DESTROY { my $self = shift; |