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 |
- |
|
|