Bugzilla – Attachment 174941 Details for
Bug 37349
Use cache for authority types when linking bibliographic records to authorities
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 37349: (follow-up) Cache the authority type, not just the key
Bug-37349-follow-up-Cache-the-authority-type-not-j.patch (text/plain), 1.28 KB, created by
Nick Clemens (kidclamp)
on 2024-11-22 18:03:24 UTC
(
hide
)
Description:
Bug 37349: (follow-up) Cache the authority type, not just the key
Filename:
MIME Type:
Creator:
Nick Clemens (kidclamp)
Created:
2024-11-22 18:03:24 UTC
Size:
1.28 KB
patch
obsolete
>From 6f98fc95d0ef772be2944e310cb13386a0ff6061 Mon Sep 17 00:00:00 2001 >From: Nick Clemens <nick@bywatersolutions.com> >Date: Fri, 22 Nov 2024 17:11:07 +0000 >Subject: [PATCH] Bug 37349: (follow-up) Cache the authority type, not just the > key > >Test were failing because I neglected to store the value in the cache, I was only >adding the cache key >--- > C4/Biblio.pm | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-) > >diff --git a/C4/Biblio.pm b/C4/Biblio.pm >index 6c62b21311a..6f36813c986 100644 >--- a/C4/Biblio.pm >+++ b/C4/Biblio.pm >@@ -716,7 +716,10 @@ sub LinkBibHeadingsToAuthorities { > $memory_cache->get_from_cache( "LinkBibHeadingsToAuthorities:AuthorityType:" . $heading->auth_type() ); > unless ($authority_type) { > $authority_type = Koha::Authority::Types->find( $heading->auth_type() ); >- $memory_cache->set_in_cache( "LinkBibHeadingsToAuthorities:AuthorityType:" . $heading->auth_type() ); >+ $memory_cache->set_in_cache( >+ "LinkBibHeadingsToAuthorities:AuthorityType:" . $heading->auth_type(), >+ $authority_type >+ ); > } > if ( defined $current_link > && (!$allowrelink || C4::Context->preference('LinkerKeepStale')) ) >-- >2.39.5
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 37349
:
168922
|
170142
|
170211
|
170436
|
174940
| 174941