Bug 17189: Replace occurrences of 'use Koha::Cache'
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Wed, 7 Sep 2016 10:58:05 +0000 (11:58 +0100)
committerKyle M Hall <kyle@bywatersolutions.com>
Thu, 8 Sep 2016 10:24:47 +0000 (10:24 +0000)
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>

13 files changed:
C4/Biblio.pm
C4/Calendar.pm
C4/External/OverDrive.pm
C4/Koha.pm
C4/Utils/DataTables/ColumnsSettings.pm
Koha/Calendar.pm
admin/biblio_framework.pl
admin/marctagstructure.pl
opac/svc/report
svc/report
t/Calendar.t
t/db_dependent/Filter_MARC_ViewPolicy.t
tools/newHolidays.pl

index 8865daa..04a6353 100644 (file)
@@ -39,7 +39,7 @@ use C4::Linker;
 use C4::OAI::Sets;
 use C4::Debug;
 
-use Koha::Cache;
+use Koha::Caches;
 use Koha::Authority::Types;
 use Koha::Acquisition::Currencies;
 use Koha::SearchEngine;
index 18a23ab..2c1b0d8 100644 (file)
@@ -23,7 +23,7 @@ use Carp;
 use Date::Calc qw( Date_to_Days Today);
 
 use C4::Context;
-use Koha::Cache;
+use Koha::Caches;
 
 use constant ISO_DATE_FORMAT => "%04d-%02d-%02d";
 
index 1093a1b..9044169 100644 (file)
@@ -22,7 +22,7 @@ use warnings;
 
 use Koha;
 use JSON;
-use Koha::Cache;
+use Koha::Caches;
 use HTTP::Request;
 use HTTP::Request::Common;
 use LWP::Authen::Basic;
index d82ad1e..e2d43b0 100644 (file)
@@ -25,7 +25,7 @@ use strict;
 
 use C4::Context;
 use C4::Branch; # Can be removed?
-use Koha::Cache;
+use Koha::Caches;
 use Koha::DateUtils qw(dt_from_string);
 use Koha::Libraries;
 use DateTime::Format::MySQL;
index 9e838d6..8713489 100644 (file)
@@ -5,7 +5,7 @@ use List::Util qw( first );
 use YAML;
 use C4::Context;
 use Koha::Database;
-use Koha::Cache;
+use Koha::Caches;
 
 sub get_yaml {
     my $yml_path = C4::Context->config('intranetdir') . '/admin/columns_settings.yml';
index 4b48ae2..0065044 100644 (file)
@@ -7,7 +7,7 @@ use DateTime;
 use DateTime::Set;
 use DateTime::Duration;
 use C4::Context;
-use Koha::Cache;
+use Koha::Caches;
 use Carp;
 
 sub new {
index 57839b9..dd4af97 100755 (executable)
@@ -26,7 +26,7 @@ use C4::Output;
 use Koha::Biblios;
 use Koha::BiblioFramework;
 use Koha::BiblioFrameworks;
-use Koha::Cache;
+use Koha::Caches;
 
 my $input         = new CGI;
 my $frameworkcode = $input->param('frameworkcode') || q||;
index 3ea47ed..784fb50 100755 (executable)
@@ -27,7 +27,7 @@ use C4::Context;
 use C4::Output;
 use C4::Context;
 
-use Koha::Cache;
+use Koha::Caches;
 
 # retrieve parameters
 my $input = new CGI;
index 9cc21a3..d2f953d 100755 (executable)
@@ -27,7 +27,7 @@ use C4::Reports::Guided;
 use JSON;
 use CGI qw ( -utf8 );
 
-use Koha::Cache;
+use Koha::Caches;
 
 my $query       = CGI->new();
 my $report_id   = $query->param('id');
index c7e4053..8a8bc26 100755 (executable)
@@ -25,7 +25,7 @@ use C4::Reports::Guided;
 use JSON;
 use CGI qw ( -utf8 );
 
-use Koha::Cache;
+use Koha::Caches;
 
 
 my $query  = CGI->new();
index 7563753..3082271 100755 (executable)
@@ -22,7 +22,7 @@ use Test::MockModule;
 
 use DateTime;
 use DateTime::Duration;
-use Koha::Cache;
+use Koha::Caches;
 use Koha::DateUtils;
 
 use Module::Load::Conditional qw/check_install/;
index 709aea9..ab82632 100644 (file)
@@ -30,7 +30,7 @@ use MARC::Record;
 use MARC::Field;
 use C4::Context;
 use C4::Biblio;
-use Koha::Cache qw/flush_all/;
+use Koha::Caches;
 use Koha::Database;
 
 BEGIN {
index f36f0e0..822867c 100755 (executable)
@@ -10,7 +10,7 @@ use CGI qw ( -utf8 );
 use C4::Auth;
 use C4::Output;
 
-use Koha::Cache;
+use Koha::Caches;
 
 use C4::Calendar;
 use DateTime;