Bugzilla – Attachment 148066 Details for
Bug 30920
Add caching to C4::Biblio::GetAuthorisedValueDesc
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 30920: Update cache keys
Bug-30920-Update-cache-keys.patch (text/plain), 1.71 KB, created by
Tomás Cohen Arazi (tcohen)
on 2023-03-10 12:10:14 UTC
(
hide
)
Description:
Bug 30920: Update cache keys
Filename:
MIME Type:
Creator:
Tomás Cohen Arazi (tcohen)
Created:
2023-03-10 12:10:14 UTC
Size:
1.71 KB
patch
obsolete
>From 33cf717e2e8e40cf2f8a3d16bddc7e6ce1bd5e9d Mon Sep 17 00:00:00 2001 >From: Nick Clemens <nick@bywatersolutions.com> >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
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 30920
:
135771
|
136292
|
136293
|
144817
|
144818
|
144819
|
148064
|
148065
|
148066
|
148067
|
148087
|
148088
|
148089
|
148090
|
148091
|
148092
|
148093
|
148094