Bugzilla – Attachment 192972 Details for
Bug 36350
Add subclass of Koha::Objects that provides caching for find and search
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 36350: Don't cache limit searches to avoid custom expiration logic
Bug-36350-Dont-cache-limit-searches-to-avoid-custo.patch (text/plain), 921 bytes, created by
David Gustafsson
on 2026-02-11 10:10:30 UTC
(
hide
)
Description:
Bug 36350: Don't cache limit searches to avoid custom expiration logic
Filename:
MIME Type:
Creator:
David Gustafsson
Created:
2026-02-11 10:10:30 UTC
Size:
921 bytes
patch
obsolete
>From 723b0786cc50cadc83720b15eb9a0ef62b4b3ccb Mon Sep 17 00:00:00 2001 >From: David Gustafsson <david.gustafsson@ub.gu.se> >Date: Wed, 11 Feb 2026 11:10:18 +0100 >Subject: [PATCH] Bug 36350: Don't cache limit searches to avoid custom > expiration logic > >--- > Koha/Objects/Limit/Library.pm | 3 +++ > 1 file changed, 3 insertions(+) > >diff --git a/Koha/Objects/Limit/Library.pm b/Koha/Objects/Limit/Library.pm >index 212930e9b06..fa2019b474a 100644 >--- a/Koha/Objects/Limit/Library.pm >+++ b/Koha/Objects/Limit/Library.pm >@@ -57,6 +57,9 @@ sub search_with_library_limits { > $library_id //= C4::Context->userenv->{branch} > if defined C4::Context->userenv; > >+ # Disable cache to avoid complex expiry logic for limit modifications >+ $attributes->{cache} = 0; >+ > return $self->search( $params, $attributes ) unless $library_id; > > my $library_limits = $self->object_class()->_library_limits; >-- >2.51.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 36350
:
163357
|
163361
|
163857
|
163858
|
163872
|
163873
|
163874
|
163945
|
177311
|
177370
|
177371
|
177379
|
178729
|
178835
|
178837
|
179331
|
179332
|
179333
|
179342
|
179343
|
179344
|
189934
|
189935
|
189936
|
189956
|
189957
|
189958
|
189983
|
189984
|
189985
| 192972