diff options
author | Dylan William Hardison <dylan@hardison.net> | 2017-03-07 23:47:36 +0100 |
---|---|---|
committer | Dylan William Hardison <dylan@hardison.net> | 2017-03-07 23:49:02 +0100 |
commit | 9c26c01867ca3e2af1e70c051140eea59c68c500 (patch) | |
tree | 5b7b8a9e3f953a650ef1c3f07cabc4e71d750e42 /Bugzilla.pm | |
parent | 91248ef8f435814392896e247c45e09119ec6729 (diff) | |
download | bugzilla-9c26c01867ca3e2af1e70c051140eea59c68c500.tar.gz bugzilla-9c26c01867ca3e2af1e70c051140eea59c68c500.tar.xz |
Bug 1307485 - Add code to run a subset of buglist.cgi search queries against the ES backend
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 55e416933..8e70cb653 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; @@ -782,6 +783,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, |