Bug 24761

Summary: Caching issues in scripts running in daemon mode [OMNIBUS]
Product: Koha Reporter: Tomás Cohen Arazi (tcohen) <tomascohen>
Component: Architecture, internals, and plumbingAssignee: Bugs List <koha-bugs>
Status: RESOLVED FIXED QA Contact: Testopia <testopia>
Severity: normal    
Priority: P5 - low CC: agustinmoyano, dcook, jonathan.druart, kyle, martin.renvoize
Version: Main   
Hardware: All   
OS: All   
See Also: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23223
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:
Bug Depends on: 16758, 23640, 25292    
Bug Blocks:    

Description Tomás Cohen Arazi (tcohen) 2020-02-28 14:25:35 UTC
Bug 16758 highlighted an issue on long running processes (daemons) with the L1 cache mechanism not being able to invalidate cache.

The proposed and agreed solution there was to disable L1 cache for daemon scripts. But the bug only took care of rebuild_zebra.pl, leaving things like SIPServer for later. We should resume that work, and discussion.

It clearly needs to be handled in a generic way on Koha::Script
Comment 1 Jonathan Druart 2020-02-28 15:02:43 UTC
Invalidation of L1 cache for SIP has been done on bug 23640.
Comment 2 Jonathan Druart 2020-04-27 14:06:50 UTC
Opened Bug 25292 - L1 cache too long in Z3950 server (z3950-responder)

Do we have something else?
Comment 3 David Cook 2020-04-28 00:48:05 UTC
> Do we have something else?

I can't think of anything else?

In terms of Koha-related daemons, at a glance all I see are the following:
- koha-plack (starman)
- koha-indexer (rebuild_zebra.pl)
- koha-sip (SIPServer.pm)
- koha-zebra (zebrasrv)
- koha-z3950-responder (Z3950Responder.pm)

koha-plack and koha-zebra are irrelevant. koha-indexer and koha-sip are done. So that should just leave koha-z3950-responder via https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=25292.
Comment 4 David Cook 2020-04-28 00:49:26 UTC
(In reply to Jonathan Druart from comment #2)
> Do we have something else?

If Bug 22417 goes ahead, the koha-worker daemons would probably need it, if they were closely coupled to Koha.
Comment 5 Katrin Fischer 2024-01-06 13:45:40 UTC
It looks like all linked bugs here have been closed/resolved now. Closing this one as well, please re-open if I missed something.