https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13193
--- Comment #6 from Joonas Kylmälä <[email protected]> --- To reproduce run you can use the following snippet: ------------------------------------------------------------- use C4::Context; use C4::SIP::Sip::MsgType; my $threads = 50; for (1 .. $threads) { if (fork() == 0) { C4::SIP::Sip::MsgType::api_auth("DDDDDD", "fffffff", "YY"); exit; } } wait for $threads; ------------------------------------------------------------- and following diff: ------------------------------------------------------------- --- a/C4/Context.pm +++ b/C4/Context.pm @@ -418,6 +418,7 @@ sub preference { if ($use_syspref_cache) { $syspref_cache = Koha::Caches->get_instance('syspref') unless $syspref_cache; my $cached_var = $syspref_cache->get_from_cache("syspref_$var"); +warn "Cache for $var is $cached_var"; return $cached_var if defined $cached_var; } -------------------------------------------------------------- Notice how *sometimes* the output of the warn message "Cache for version is 1d" has 1d as the value instead of an actual Koha version like 19.0600013. -- You are receiving this mail because: You are watching all bug changes. _______________________________________________ Koha-bugs mailing list [email protected] https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
