diff --git a/C4/Languages.pm b/C4/Languages.pm index 091d3bb0ed..ac5ea551f8 100644 --- a/C4/Languages.pm +++ b/C4/Languages.pm @@ -30,15 +30,16 @@ eval { if ($servers) { require Memoize::Memcached; import Memoize::Memcached qw(memoize_memcached); - - my $memcached = { - servers => [ $servers ], - key_prefix => C4::Context->config('memcached_namespace') || 'koha', - }; - memoize_memcached('getTranslatedLanguages', memcached => $memcached, expire_time => 600); #cache for 10 minutes - memoize_memcached('getFrameworkLanguages' , memcached => $memcached, expire_time => 600); - memoize_memcached('getAllLanguages', memcached => $memcached, expire_time => 600); + my $memcached = { + servers => [$servers], + key_prefix => C4::Context->config('memcached_namespace') || 'koha', + expire_time => 600 + }; # cache for 10 mins + + memoize_memcached( 'getTranslatedLanguages', memcached => $memcached ); + memoize_memcached( 'getFrameworkLanguages', memcached => $memcached ); + memoize_memcached( 'getAllLanguages', memcached => $memcached ); } };