[Koha-bugs] [Bug 25292] L1 cache too long in Z3950 server (z3950-responder)

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Apr 27 16:31:53 CEST 2020


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=25292

--- Comment #1 from Jonathan Druart <jonathan.druart at bugs.koha-community.org> ---
Created attachment 103795
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=103795&action=edit
Bug 25292: Flushing L1 on every Z3950 server search

This patch flushes the L1 cache on each Z3950 server search.

There is no need to flush it in init_handler (when the connection is
made), the L1 cache is not accessed (this behaviour goes against what I
expected).

This means each search will fetch values from the
L2 cache (ie memcached) and persist the L1 cache (in Perl
memory cache) until the result are returned (or longer?).

Test plan:
% perl misc/z3950_responder.pl --config-dir=/kohadevbox/koha/etc/z3950
% zoomsh
ZOOM>connect localhost:2100
ZOOM>set databaseName biblios
ZOOM>search x
ZOOM>search x

Between the 2 searches you can modify the value of SearchEngine, you
will notice that the number of hits is different

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list