[Koha-bugs] [Bug 16070] Empty (undef) system preferences may cause some issues in combination with memcache
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Tue Mar 15 10:54:35 CET 2016
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=16070
Jonathan Druart <jonathan.druart at bugs.koha-community.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jonathan.druart at bugs.koha-c
| |ommunity.org
--- Comment #1 from Jonathan Druart <jonathan.druart at bugs.koha-community.org> ---
bug 11998 comment 113:
"""
For sysprefs with undef value in the database - while testing with memcache -
there are 2 warnings generated:
Use of uninitialized value in subroutine entry at
/home/koha/devkohaclone/Koha/Cache.pm line 287.
Use of uninitialized value in subroutine entry at
/home/koha/devkohaclone/Koha/Cache.pm line 287.
This only happens when trying to fetch such syspref first time, from
unpopulated cache. There are 9 such values in my test database:
CoceHost
CoceProviders
DefaultLongOverdueChargeValue
DefaultLongOverdueDays
DefaultLongOverdueLostValue
MembershipExpiryDaysNotice
NovelistSelectPassword
NovelistSelectProfile
TagsExternalDictionary
Non-existing preference fetch generates the same warning (but again only once).
Note that subsequent C4::Context->preference() calls will return empty string
for such preferences, instead of undef value - not sure if that may cause some
problems or not, but it's a change from previous behaviour. Also it does not
happen for Cache::Memory (= default caching system after this patch).
"""
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list