From 1b2cdc9deba2663a00838d49a5e60c793c3f5aab 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 --- 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.1.4