@@ -, +, @@ replaced with clear_syspref_cache() --- C4/Context.pm | 3 --- t/db_dependent/HoldsQueue.t | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) --- a/C4/Context.pm +++ a/C4/Context.pm @@ -523,9 +523,6 @@ with this method. # flushing the caching mechanism. my %sysprefs; -sub _flush_preferences { - %sysprefs = (); -} sub preference { my $self = shift; --- a/t/db_dependent/HoldsQueue.t +++ a/t/db_dependent/HoldsQueue.t @@ -152,7 +152,7 @@ sub test_queue { $test_name = "$test_name (".($use_cost_matrix ? "" : "don't")." use cost matrix)"; $use_cost_matrix_sth->execute($use_cost_matrix); - C4::Context->_flush_preferences(); + C4::Context->clear_syspref_cache(); C4::HoldsQueue::CreateQueue(); my $results = $dbh->selectall_arrayref($test_sth, { Slice => {} }); # should be only one --