Bugzilla – Attachment 55302 Details for
Bug 17189
Add the ability to define several memcached namespaces
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 17189: Use Koha::Caches instead of Koha::Cache in Koha::MetaSearcher
Bug-17189-Use-KohaCaches-instead-of-KohaCache-in-K.patch (text/plain), 1.09 KB, created by
Jacek Ablewicz
on 2016-09-07 13:50:10 UTC
(
hide
)
Description:
Bug 17189: Use Koha::Caches instead of Koha::Cache in Koha::MetaSearcher
Filename:
MIME Type:
Creator:
Jacek Ablewicz
Created:
2016-09-07 13:50:10 UTC
Size:
1.09 KB
patch
obsolete
>From 9ec2f45c52fef5c7f9323d5a185e77b5220daccd Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Wed, 7 Sep 2016 12:03:00 +0100 >Subject: [PATCH] Bug 17189: Use Koha::Caches instead of Koha::Cache in > Koha::MetaSearcher > >Signed-off-by: Jacek Ablewicz <abl@biblos.pk.edu.pl> >--- > Koha/MetaSearcher.pm | 5 ++--- > 1 file changed, 2 insertions(+), 3 deletions(-) > >diff --git a/Koha/MetaSearcher.pm b/Koha/MetaSearcher.pm >index e38b15d..ce5add4 100644 >--- a/Koha/MetaSearcher.pm >+++ b/Koha/MetaSearcher.pm >@@ -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 => { >-- >1.7.10.4
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 17189
:
54815
|
54816
|
54817
|
55284
|
55285
|
55286
|
55291
|
55292
|
55293
|
55294
|
55295
|
55301
|
55302
|
55316
|
55317
|
55318
|
55319
|
55320
|
55321
|
55341