Bug 17189: Use Koha::Caches instead of Koha::Cache in Koha::MetaSearcher
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> https://bugs.koha-community.org/show_bug.cgi?id=11921 Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
This commit is contained in:
parent
658f603511
commit
b537ba198c
1 changed files with 2 additions and 3 deletions
|
@ -25,7 +25,7 @@ use C4::Charset qw( MarcToUTF8Record );
|
|||
use C4::Search qw(); # Purely for new_record_from_zebra
|
||||
use DBIx::Class::ResultClass::HashRefInflator;
|
||||
use IO::Select;
|
||||
use Koha::Cache;
|
||||
use Koha::Caches;
|
||||
use Koha::Database;
|
||||
use Koha::MetadataRecord;
|
||||
use MARC::File::XML;
|
||||
|
@ -91,8 +91,7 @@ sub search {
|
|||
|
||||
my $resultset_expiry = 300;
|
||||
|
||||
my $cache;
|
||||
eval { $cache = Koha::Cache->new(); };
|
||||
my $cache = Koha::Caches->get_instance();
|
||||
my $schema = Koha::Database->new->schema;
|
||||
my $stats = {
|
||||
num_fetched => {
|
||||
|
|
Loading…
Reference in a new issue