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