Bug 16758: Use the default cache instance
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 8 May 2017 15:43:43 +0000 (12:43 -0300)
committerKyle M Hall <kyle@bywatersolutions.com>
Fri, 12 May 2017 12:49:42 +0000 (08:49 -0400)
I do not see a valid reason not to use the default one instead of the
syspref one.

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
misc/migration_tools/rebuild_zebra.pl

index db04b11..28ce27c 100755 (executable)
@@ -63,7 +63,7 @@ my $run_user = (getpwuid($<))[0];
 my $wait_for_lock = 0;
 my $use_flock;
 my $table = 'biblioitems';
-my $is_memcached = Koha::Caches->get_instance('syspref')->memcached_cache;
+my $is_memcached = Koha::Caches->get_instance->memcached_cache;
 
 my $verbose_logging = 0;
 my $zebraidx_log_opt = " -v none,fatal,warn ";