[Koha-bugs] [Bug 17833] Memcached silently fails to _initilize_memcached() on the second time it is invoked

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Jan 2 12:28:12 CET 2017


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

--- Comment #1 from Olli-Antti Kivilahti <olli-antti.kivilahti at jns.fi> ---
Created attachment 58554
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=58554&action=edit
Bug 17833 - Memcached silently fails to _initilize_memcached() on the second
time it is invoked

When _initilize_memcached() is called the first time, it sets the
'ismemcached'-key and returns 1.

When _initilize_memcached() is called the second time, the 'ismemcached'-key
already exists and '' is returned (this default to False in Perl).
Koha thinks that memcached is not in use and decides to use some other caching
mechanism instead.

Cache::Memcached::Fast returns undef on server error:
https://metacpan.org/pod/Cache::Memcached::Fast#add

Koha MUST listen to undefined, instead of False to define whether or not
memcached
is properly working.

Also added simple helpful diagnostics to help identify and log when this
memcached
server connection problem arises.

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


More information about the Koha-bugs mailing list