From 33cf717e2e8e40cf2f8a3d16bddc7e6ce1bd5e9d Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Fri, 23 Dec 2022 12:56:37 +0000 Subject: [PATCH] Bug 30920: Update cache keys This changes the cache keys to use ':' to separate levels and orders from generic to specific --- C4/Biblio.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/C4/Biblio.pm b/C4/Biblio.pm index 991d32716be..d09e4596de8 100644 --- a/C4/Biblio.pm +++ b/C4/Biblio.pm @@ -1383,7 +1383,7 @@ sub GetAuthorisedValueDesc { #---- branch if ( $tagslib->{$tag}->{$subfield}->{'authorised_value'} eq "branches" ) { - $cache_key = "LibraryNames"; + $cache_key = "libraries:name"; my $libraries = $cache->get_from_cache( $cache_key, { unsafe => 1 } ); if ( !$libraries ) { $libraries = { @@ -1401,7 +1401,7 @@ sub GetAuthorisedValueDesc { if ( $tagslib->{$tag}->{$subfield}->{'authorised_value'} eq "itemtypes" ) { my $lang = C4::Languages::getlanguage; $lang //= 'en'; - $cache_key = $lang . 'ItemTypeDescriptions'; + $cache_key = 'itemtype:description:' . $lang; my $itypes = $cache->get_from_cache( $cache_key, { unsafe => 1 } ); if ( !$itypes ) { $itypes = @@ -1433,7 +1433,7 @@ sub GetAuthorisedValueDesc { my $dbh = C4::Context->dbh; if ( $category ne "" ) { - $cache_key = "AVDescriptions-" . $category; + $cache_key = "AV_descriptions:" . $category; my $av_descriptions = $cache->get_from_cache( $cache_key, { unsafe => 1 } ); if ( !$av_descriptions ) { $av_descriptions = { -- 2.34.1