Bugzilla – Attachment 148089 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.77 KB, created by
Martin Renvoize (ashimema)
on 2023-03-10 16:38:04 UTC
(
hide
)
Description:
Bug 30920: Update cache keys
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2023-03-10 16:38:04 UTC
Size:
1.77 KB
patch
obsolete
>From 84dd9cc2df45fe0dbd2ba72f23c9cdf59c7b2146 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 > >Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> >--- > C4/Biblio.pm | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > >diff --git a/C4/Biblio.pm b/C4/Biblio.pm >index 991d32716b..d09e4596de 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.39.2
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