[Koha-bugs] [Bug 16104] Warnings "used only once: possible typo" should be removed

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Apr 25 12:04:07 CEST 2016


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

Jacek Ablewicz <abl at biblos.pk.edu.pl> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |abl at biblos.pk.edu.pl

--- Comment #8 from Jacek Ablewicz <abl at biblos.pk.edu.pl> ---
(In reply to Jonathan Druart from comment #1)

> QA note: this may have an impact on performance but I have not found any
> other workarounds.

This

   if ( can_load( modules => { 'Cache::Memory' => undef, nocache => 1 } ) ) {

is not a right syntax for 'noncache' parameter.. If called that way, can_load()
tries to load Cache::Memory and (nonexisting) 'nocache' module (version >=
1.0), and fails - so it simply prevents Cache::Memory loading (hence no more
warnings). This has and enormous impact on performance in all setups which do
not use memcached as a caching system; after that, memchached is the only
caching system still working in Koha.

It also causes 'prove t/Cache.t' to fail in the default setup (w/o memcached).

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


More information about the Koha-bugs mailing list