@@ -, +, @@ framework/authvals --- C4/Biblio.pm | 2 +- C4/Koha.pm | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) --- a/C4/Biblio.pm +++ a/C4/Biblio.pm @@ -1121,7 +1121,7 @@ sub GetMarcStructure { $forlibrarian = $forlibrarian ? 1 : 0; my $cache = Koha::Cache->get_instance(); my $cache_key = "MarcStructure-$forlibrarian-$frameworkcode"; - my $cached = $cache->get_from_cache($cache_key); + my $cached = $cache->get_from_cache( $cache_key, { unsafe => 1 } ); return $cached if $cached; my $sth = $dbh->prepare( --- a/C4/Koha.pm +++ a/C4/Koha.pm @@ -1035,7 +1035,7 @@ sub GetAuthorisedValues { my $cache_key = "AuthorisedValues-$category-$opac-$branch_limit"; my $cache = Koha::Cache->get_instance(); - my $result = $cache->get_from_cache($cache_key); + my $result = $cache->get_from_cache($cache_key, { unsafe => 1 } ); if ($result) { _AddSelectedAuthVal( $result, $selected ) if defined $selected; return $result; @@ -1080,7 +1080,7 @@ sub GetAuthorisedValues { } $sth->finish; - $cache->set_in_cache( $cache_key, \@results, { deepcopy => 1 } ); + $cache->set_in_cache( $cache_key, \@results ); _AddSelectedAuthVal( \@results, $selected ); return \@results; } --