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

(-)a/C4/Biblio.pm (-1 / +1 lines)
Lines 1124-1130 sub GetMarcStructure { Link Here
1124
    $forlibrarian = $forlibrarian ? 1 : 0;
1124
    $forlibrarian = $forlibrarian ? 1 : 0;
1125
    my $cache = Koha::Cache->get_instance();
1125
    my $cache = Koha::Cache->get_instance();
1126
    my $cache_key = "MarcStructure-$forlibrarian-$frameworkcode";
1126
    my $cache_key = "MarcStructure-$forlibrarian-$frameworkcode";
1127
    my $cached = $cache->get_from_cache($cache_key);
1127
    my $cached = $cache->get_from_cache( $cache_key, { unsafe => 1 } );
1128
    return $cached if $cached;
1128
    return $cached if $cached;
1129
1129
1130
    my $dbh = C4::Context->dbh;
1130
    my $dbh = C4::Context->dbh;
(-)a/C4/Koha.pm (-2 / +1 lines)
Lines 1025-1031 sub GetAuthorisedValues { Link Here
1025
    my $cache_key =
1025
    my $cache_key =
1026
      "AuthorisedValues-$category-$opac-$branch_limit";
1026
      "AuthorisedValues-$category-$opac-$branch_limit";
1027
    my $cache  = Koha::Cache->get_instance();
1027
    my $cache  = Koha::Cache->get_instance();
1028
    my $result = $cache->get_from_cache($cache_key);
1028
    my $result = $cache->get_from_cache($cache_key, { unsafe => 1 } );
1029
    if ($result) {
1029
    if ($result) {
1030
        _AddSelectedAuthVal( $result, $selected ) if defined $selected;
1030
        _AddSelectedAuthVal( $result, $selected ) if defined $selected;
1031
        return $result;
1031
        return $result;
1032
- 

Return to bug 16140