Bug 16770: Remove wrong caching of 3 subroutines in C4::Lancuages
ooking at this code, you might think these subroutines are cached, but
actually they are not.
The eval surrounding the code hides a bug, if you remove it, you will
get:
Invalid memcached argument (expected a hash)
Test plan:
Do not apply this patch and confirm that the code does not work
Signed-off-by: Jacek Ablewicz <abl@biblos.pk.edu.pl>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
(cherry picked from commit 44fb6e7225)
Signed-off-by: Frédéric Demians <f.demians@tamil.fr>
This commit is contained in:
parent
8dbb79564f
commit
0a09cb7d09
|
|
@ -29,17 +29,6 @@ use C4::Context;
|
|||
use Koha::Cache::Memory::Lite;
|
||||
use vars qw(@ISA @EXPORT @EXPORT_OK %EXPORT_TAGS $DEBUG);
|
||||
|
||||
eval {
|
||||
if (C4::Context->ismemcached) {
|
||||
require Memoize::Memcached;
|
||||
import Memoize::Memcached qw(memoize_memcached);
|
||||
|
||||
memoize_memcached('getTranslatedLanguages', memcached => C4::Context->memcached);
|
||||
memoize_memcached('getFrameworkLanguages' , memcached => C4::Context->memcached);
|
||||
memoize_memcached('getAllLanguages', memcached => C4::Context->memcached);
|
||||
}
|
||||
};
|
||||
|
||||
BEGIN {
|
||||
require Exporter;
|
||||
@ISA = qw(Exporter);
|
||||
|
|
|
|||
Loading…
Reference in New Issue