Bug 8089: Use Koha::Cache for all caching
[koha.git] / reports / guided_reports.pl
index 8a2aada..25a2ffb 100755 (executable)
@@ -28,6 +28,7 @@ use C4::Output;
 use C4::Dates;
 use C4::Debug;
 use C4::Branch; # XXX subfield_is_koha_internal_p
+use Koha::Cache;
 
 =head1 NAME
 
@@ -40,7 +41,7 @@ Script to control the guided report creation
 =cut
 
 my $input = new CGI;
-my $usecache = C4::Context->ismemcached;
+my $usecache = Koha::Cache->is_cache_active();
 
 my $phase = $input->param('phase');
 my $flagsrequired;