From 70237c49ef1aced89dfaf56ad5c9a847c0dc9d83 Mon Sep 17 00:00:00 2001 From: Chris Cormack Date: Fri, 3 Feb 2012 12:35:21 +1300 Subject: [PATCH] Bug 7432 : Fix how we are setting expiry time when caching Signed-off-by: Jared Camins-Esakov --- C4/Biblio.pm | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/C4/Biblio.pm b/C4/Biblio.pm index 98e4f5bea6..83fef13f1c 100644 --- a/C4/Biblio.pm +++ b/C4/Biblio.pm @@ -143,10 +143,11 @@ eval { import Memoize::Memcached qw(memoize_memcached); my $memcached = { - servers => [$servers], - key_prefix => C4::Context->config('memcached_namespace') || 'koha', - }; - memoize_memcached( 'GetMarcStructure', memcached => $memcached, expire_time => 600 ); #cache for 10 minutes + servers => [$servers], + key_prefix => C4::Context->config('memcached_namespace') || 'koha', + expire_time => 600 + }; # cache for 10 mins, if you want to cache for different make a different memcached hash + memoize_memcached( 'GetMarcStructure', memcached => $memcached ); } }; -- 2.39.5