From 6b1a9db08a9ecda1e62c11fcc1aada96933141e2 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Tue, 6 Sep 2016 15:20:25 +0100 Subject: [PATCH] Bug 11921: C4::Context->memcached does no longer exist Signed-off-by: Chris Cormack Signed-off-by: Tomas Cohen Arazi Signed-off-by: Kyle M Hall --- C4/Auth.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/C4/Auth.pm b/C4/Auth.pm index 1bbe97867e..29d06fb70d 100644 --- a/C4/Auth.pm +++ b/C4/Auth.pm @@ -1729,7 +1729,8 @@ sub get_session { $session = new CGI::Session( "driver:PostgreSQL;serializer:yaml;id:md5", $sessionID, { Handle => $dbh } ); } elsif ( $storage_method eq 'memcached' && Koha::Caches->get_instance->memcached_cache ) { - $session = new CGI::Session( "driver:memcached;serializer:yaml;id:md5", $sessionID, { Memcached => C4::Context->memcached } ); + my $memcached = Koha::Caches->get_instance()->memcached_cache; + $session = new CGI::Session( "driver:memcached;serializer:yaml;id:md5", $sessionID, { Memcached => $memcached } ); } else { # catch all defaults to tmp should work on all systems -- 2.39.5