diff options
Diffstat (limited to 'Bugzilla.pm')
-rw-r--r-- | Bugzilla.pm | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Bugzilla.pm b/Bugzilla.pm index bd410364e..ecaca9151 100644 --- a/Bugzilla.pm +++ b/Bugzilla.pm @@ -23,6 +23,7 @@ BEGIN { use Bugzilla::Auth; use Bugzilla::Auth::Persist::Cookie; use Bugzilla::CGI; +use Bugzilla::Elastic; use Bugzilla::Config; use Bugzilla::Constants; use Bugzilla::DB; @@ -786,6 +787,11 @@ sub memcached { } } +sub elastic { + my ($class) = @_; + $class->process_cache->{elastic} //= Bugzilla::Elastic->new(); +} + # Private methods # Per-process cleanup. Note that this is a plain subroutine, not a method, |