#---- 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 = {
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 =
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 = {
my $cache = Koha::Caches->get_instance;
$cache->clear_from_cache("MarcCodedFields-");
+ # Clear GetAuthorisedValueDesc-generated cache
+ $cache->clear_from_cache("libraries:name");
+ $cache->clear_from_cache("itemtype:description:en");
+ $cache->clear_from_cache("cn_sources:description");
+ $cache->clear_from_cache("AV_descriptions:LOST");
C4::Biblio::ModBiblio( $record, $biblio->biblionumber );
$biblio = Koha::Biblios->find( $biblio->biblionumber);
$cache->clear_from_cache("libraries:name");
$cache->clear_from_cache("itemtype:description:en");
$cache->clear_from_cache("cn_sources:description");
+ $cache->clear_from_cache("AV_descriptions:LOST");
# Recreating subfields just to be sure tests will be ok
# 1 => av (LOST)