<div dir="auto">I agree on its removal too. </div><br><div class="gmail_quote"><div dir="ltr">On Thu, 6 Dec 2018, 8:26 am Fridolin SOMERS <<a href="mailto:fridolin.somers@biblibre.com">fridolin.somers@biblibre.com</a> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Indeed, this is a big behavior error we found a few month ago.<br>
I think we shared it in mailing but I can find how.<br>
This is a big issue when you change an HTML systempreference like <br>
"opacnav", you see the change and when refresh its gone (you see the <br>
other plack worker).<br>
We solved by installing memached everywhere.<br>
<br>
Maybe we can just disable Cache::Memory when Plack mode is used.<br>
Then I say we need a C4::Context->is_psgi() method :<br>
<a href="https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=76477" rel="noreferrer noreferrer" target="_blank">https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=76477</a><br>
<br>
Programing is sometimes so wierd ;)<br>
<br>
Regards,<br>
<br>
Le 05/12/2018 à 20:20, Jonathan Druart a écrit :<br>
> Hi devs,<br>
> <br>
> I am still recovering from my holidays and I think I caught a quite big fish.<br>
> <br>
> After an interesting track game I will explain why I am suggesting to<br>
> remove Cache::Memory that is currently used as fallback for the L2<br>
> cache.<br>
> <br>
> What I tried to fix:<br>
> Jenkins is complaining about selenium tests (regressions.t) failing on<br>
> 18.05, it is a succession of events and bugs that were not linked at<br>
> first glance.<br>
> <br>
> Here are the different steps I went though:<br>
> - On bug 21426 we noticed that USE_MEMCACHED was not taken into<br>
> account. If set to "no" the default memcached config was defined in<br>
> the koha-config.xml file anyway<br>
> - A new regression selenium test was added on bug 21777 to catch the<br>
> presence of an audio alert on the circulation page<br>
> - Investigating the failing tests I noticed that koha-testing-docker<br>
> was not setting the memcached config on the 18.05 branches (I guess<br>
> the image has not been rebuilt yet)<br>
> search_utf8.t output "Warning: script running in daemon mode, without<br>
> recommended caching system (memcached)."<br>
> - I also find that [% Koha.Preference('AudioAlerts') %] did not return<br>
> the value set by the tests, but the value that the DB has before the<br>
> tests were launched<br>
> => It is a cache issue!<br>
> - ...but only when memcached is not set...<br>
> - Reading Koha::Cache->new we can notice that Cache::Memory is used<br>
> for the L2 cache when memcached is not defined in the config<br>
> <br>
> And so we have the problem: If a value is set in the cache by a Plack<br>
> worker, it will not be available from another one, as the L2 cache is<br>
> not shared (!)<br>
> <br>
> To recreate easily the problem you can:<br>
> - remove the memcached config<br>
> - edit intranet-bottom.inc and add<br>
> ===[% Koha.Preference('AudioAlerts') %]===<br>
> - restart plack<br>
> - Modify the value of AudioAlerts (using the UI)<br>
> - Reload the page (reload several times if the value is still correct,<br>
> it will depend on which worker will serve the request)<br>
> <br>
> Solution:<br>
> I am considering removing Cache::Memory unless somebody else has a better idea<br>
> Bug 21955 - Cache::Memory should not be used as L2 cache<br>
> <br>
> Note that it should not affect a lot of people as everybody is<br>
> supposed to have memcached configured and working correctly!<br>
> <br>
> Cheers,<br>
> Jonathan<br>
> _______________________________________________<br>
> Koha-devel mailing list<br>
> <a href="mailto:Koha-devel@lists.koha-community.org" target="_blank" rel="noreferrer">Koha-devel@lists.koha-community.org</a><br>
> <a href="http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel" rel="noreferrer noreferrer" target="_blank">http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel</a><br>
> website : <a href="http://www.koha-community.org/" rel="noreferrer noreferrer" target="_blank">http://www.koha-community.org/</a><br>
> git : <a href="http://git.koha-community.org/" rel="noreferrer noreferrer" target="_blank">http://git.koha-community.org/</a><br>
> bugs : <a href="http://bugs.koha-community.org/" rel="noreferrer noreferrer" target="_blank">http://bugs.koha-community.org/</a><br>
> <br>
<br>
-- <br>
Fridolin SOMERS <<a href="mailto:fridolin.somers@biblibre.com" target="_blank" rel="noreferrer">fridolin.somers@biblibre.com</a>><br>
BibLibre, France - software and system maintainer<br>
_______________________________________________<br>
Koha-devel mailing list<br>
<a href="mailto:Koha-devel@lists.koha-community.org" target="_blank" rel="noreferrer">Koha-devel@lists.koha-community.org</a><br>
<a href="http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel" rel="noreferrer noreferrer" target="_blank">http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel</a><br>
website : <a href="http://www.koha-community.org/" rel="noreferrer noreferrer" target="_blank">http://www.koha-community.org/</a><br>
git : <a href="http://git.koha-community.org/" rel="noreferrer noreferrer" target="_blank">http://git.koha-community.org/</a><br>
bugs : <a href="http://bugs.koha-community.org/" rel="noreferrer noreferrer" target="_blank">http://bugs.koha-community.org/</a></blockquote></div>