Bug 16412

Summary: Cache undef in L1 only
Product: Koha Reporter: Marcel de Rooy <m.de.rooy>
Component: Architecture, internals, and plumbingAssignee: Marcel de Rooy <m.de.rooy>
Status: CLOSED FIXED QA Contact: Testopia <testopia>
Severity: normal    
Priority: P5 - low CC: julian.maurice, jweaver
Version: Main   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: Small patch
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Bug Depends on: 16044    
Bug Blocks:    
Attachments: Bug 16412: Cache undef in L1 only
Bug 16412: Make sure Koha::Cache->set_in_cache will not warn anymore
Bug 16412: Cache undef in L1 only
[PASSED QA] Bug 16412: Make sure Koha::Cache->set_in_cache will not warn anymore
[PASSED QA] Bug 16412: Cache undef in L1 only

Description Marcel de Rooy 2016-05-02 10:30:05 UTC
No need to cache undef in L2.
Prevent numerous warnings like:
Use of uninitialized value in subroutine entry at /usr/share/koha/masterclone/Koha/Cache.pm line 284
Comment 1 Marcel de Rooy 2016-05-02 10:31:23 UTC Comment hidden (obsolete)
Comment 2 Jonathan Druart 2016-05-02 11:44:20 UTC Comment hidden (obsolete)
Comment 3 Jonathan Druart 2016-05-02 11:44:31 UTC Comment hidden (obsolete)
Comment 4 Marcel de Rooy 2016-05-02 11:47:09 UTC
Thanks, Jonathan.
Just to clarify for QA:
If you use memcached, this patch will remove numerous warnings like:
Use of uninitialized value in subroutine entry at /usr/share/koha/masterclone/Koha/Cache.pm line 284
Comment 5 Katrin Fischer 2016-05-08 14:34:42 UTC
Created attachment 51310 [details] [review]
[PASSED QA] Bug 16412: Make sure Koha::Cache->set_in_cache will not warn anymore

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Comment 6 Katrin Fischer 2016-05-08 14:35:15 UTC
Created attachment 51311 [details] [review]
[PASSED QA] Bug 16412: Cache undef in L1 only

No need to cache undef in L2.
Prevent numerous warnings like:
Use of uninitialized value in subroutine entry at /usr/share/koha/masterclone/Koha/Cache.pm line 284

Test plan:
Run t/Cache.t
Run t/db_dependent/sysprefs.t

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Amended patch: remove trailing space char and replace 'you' with 'we' to
match existing wordings.

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Comment 7 Jesse Weaver 2016-05-12 22:11:33 UTC
Pushed for inclusion in 16.05, to be released in May 2015. Thanks for your work!
Comment 8 Jesse Weaver 2016-05-12 22:16:05 UTC
May 2016, rather...
Comment 9 Julian Maurice 2016-05-16 09:12:25 UTC
Not needed in stable versions, status changed to RESOLVED
Comment 10 Julian Maurice 2016-06-23 07:44:50 UTC
(In reply to Julian Maurice from comment #9)
> Not needed in stable versions, status changed to RESOLVED

Now needed because bug 16044 was pushed to 3.22.x
Patches pushed to 3.22.x, will be in 3.22.8