From 3129fec43648d2bd4e4ef0995854ff56b32ff897 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 --- C4/Auth.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/C4/Auth.pm b/C4/Auth.pm index 1bbe978..29d06fb 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.8.1