REPRODUCE: - $KOHA_CONF shouldn't have any <memcached_* -definitions. This triggers in-memory cache usage. - plack workers is atleast 2 - Change some easily visible syspref, such as 'languages'. The syspref change applies only to the worker thread where the change was made. Other worker threads keep using the old syspref. - Observer that 50% of time the old syspref is used. Other times the new syspref is used. - Reduce plack workers to 1. Observe no issues with syspref change taking effect. Using memcached solves this problem. It is still useful to fix it for those who don't want to use memcached.
Created attachment 68469 [details] [review] Bug 19523 - Koha::Cache changes not passed to all plack workers with in-memory caching. REPRODUCE: - $KOHA_CONF shouldn't have any <memcached_* -definitions. This triggers in-memory cache usage. - plack workers is atleast 2 - Change some easily visible syspref, such as 'languages'. The syspref change applies only to the worker thread where the change was made. Other worker threads keep using the old syspref. - Observe that 50% of time the old syspref is used. Other times the new syspref is used. - Reduce plack workers to 1. Observe no issues with syspref change taking effect. Using memcached solves this problem. It is still useful to fix it for those who don't want to use memcached.
Created attachment 69325 [details] [review] Bug 19532: Some fiddly fixes Little typos etc
Comment on attachment 69325 [details] [review] Bug 19532: Some fiddly fixes Removed patch from another bug :)
Indeed, Memcached is recomanded with Plack.
I found the title and description for this misleading, but the patch looks good at a glance.