View | Details | Raw Unified | Return to bug 16140
Collapse All | Expand All

(-)a/C4/Biblio.pm (-1 / +1 lines)
Lines 1121-1127 sub GetMarcStructure { Link Here
1121
    $forlibrarian = $forlibrarian ? 1 : 0;
1121
    $forlibrarian = $forlibrarian ? 1 : 0;
1122
    my $cache = Koha::Cache->get_instance();
1122
    my $cache = Koha::Cache->get_instance();
1123
    my $cache_key = "MarcStructure-$forlibrarian-$frameworkcode";
1123
    my $cache_key = "MarcStructure-$forlibrarian-$frameworkcode";
1124
    my $cached = $cache->get_from_cache($cache_key);
1124
    my $cached = $cache->get_from_cache( $cache_key, { unsafe => 1 } );
1125
    return $cached if $cached;
1125
    return $cached if $cached;
1126
1126
1127
    my $sth = $dbh->prepare(
1127
    my $sth = $dbh->prepare(
(-)a/C4/Koha.pm (-3 / +2 lines)
Lines 1035-1041 sub GetAuthorisedValues { Link Here
1035
    my $cache_key =
1035
    my $cache_key =
1036
      "AuthorisedValues-$category-$opac-$branch_limit";
1036
      "AuthorisedValues-$category-$opac-$branch_limit";
1037
    my $cache  = Koha::Cache->get_instance();
1037
    my $cache  = Koha::Cache->get_instance();
1038
    my $result = $cache->get_from_cache($cache_key);
1038
    my $result = $cache->get_from_cache($cache_key, { unsafe => 1 } );
1039
    if ($result) {
1039
    if ($result) {
1040
        _AddSelectedAuthVal( $result, $selected ) if defined $selected;
1040
        _AddSelectedAuthVal( $result, $selected ) if defined $selected;
1041
        return $result;
1041
        return $result;
Lines 1080-1086 sub GetAuthorisedValues { Link Here
1080
    }
1080
    }
1081
    $sth->finish;
1081
    $sth->finish;
1082
1082
1083
    $cache->set_in_cache( $cache_key, \@results, { deepcopy => 1 } );
1083
    $cache->set_in_cache( $cache_key, \@results );
1084
    _AddSelectedAuthVal( \@results, $selected );
1084
    _AddSelectedAuthVal( \@results, $selected );
1085
    return \@results;
1085
    return \@results;
1086
}
1086
}
1087
- 

Return to bug 16140