From a2456659ca369010808de5bed8299f0b3827ce74 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 Content-Type: text/plain; charset="UTF-8" Signed-off-by: Jared Camins-Esakov --- C4/Biblio.pm | 9 +++++---- 1 files changed, 5 insertions(+), 4 deletions(-) diff --git a/C4/Biblio.pm b/C4/Biblio.pm index 98e4f5b..83fef13 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 ); } }; -- 1.7.2.5