[Koha-bugs] [Bug 16758] Caching issues in scripts running in daemon mode

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu May 11 13:00:50 CEST 2017


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

--- Comment #16 from Jacek Ablewicz <abl at biblos.pk.edu.pl> ---
(In reply to Jonathan Druart from comment #12)
> Why do you get the "syspref" cache instance?
> I guess there is no reason, I'd suggest to remove it and retrieve the
> default one.

When rebuild_zebra.pl starts, it immediately initialises all 3 instances
(config, syspref and default - in that order), so it probably doesn't matter
much which one is used for checking if memcached is in use or not in use. Bug
18250 seems to be a bigger issue (possibility that zebra_daemon gets started
before memcached is up and running). Overall, I don't think this is such a
major issue for zebra daemon right now, because by a look of it,
rebuild_zebra.pl uses very limited set of cached values, and predominantly (if
not only) such kinds of values that are never changed in the production
systems, like:

   syspref_cas* (due to BEGIN block in Auth.pm), syspref_marcflavour,
syspref_includeseefrominsearches

It fetches repeatedly MarcSubfieldStructure-* from default cache instance, but
I think it's mostly used for determining tag numbers (item tag number,
biblio/biblioitem tag number), which don't change very often (if ever) in the
production environments.

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


More information about the Koha-bugs mailing list