Lines 32-37
use C4::Languages;
Link Here
|
32 |
use C4::Branch; # GetBranches |
32 |
use C4::Branch; # GetBranches |
33 |
use C4::Search::History; |
33 |
use C4::Search::History; |
34 |
use Koha; |
34 |
use Koha; |
|
|
35 |
use Koha::Caches; |
35 |
use Koha::AuthUtils qw(get_script_name hash_password); |
36 |
use Koha::AuthUtils qw(get_script_name hash_password); |
36 |
use Koha::LibraryCategories; |
37 |
use Koha::LibraryCategories; |
37 |
use Koha::Libraries; |
38 |
use Koha::Libraries; |
Lines 1727-1733
sub get_session {
Link Here
|
1727 |
elsif ( $storage_method eq 'Pg' ) { |
1728 |
elsif ( $storage_method eq 'Pg' ) { |
1728 |
$session = new CGI::Session( "driver:PostgreSQL;serializer:yaml;id:md5", $sessionID, { Handle => $dbh } ); |
1729 |
$session = new CGI::Session( "driver:PostgreSQL;serializer:yaml;id:md5", $sessionID, { Handle => $dbh } ); |
1729 |
} |
1730 |
} |
1730 |
elsif ( $storage_method eq 'memcached' && C4::Context->ismemcached ) { |
1731 |
elsif ( $storage_method eq 'memcached' && Koha::Caches->get_instance->memcached_cache ) { |
1731 |
$session = new CGI::Session( "driver:memcached;serializer:yaml;id:md5", $sessionID, { Memcached => C4::Context->memcached } ); |
1732 |
$session = new CGI::Session( "driver:memcached;serializer:yaml;id:md5", $sessionID, { Memcached => C4::Context->memcached } ); |
1732 |
} |
1733 |
} |
1733 |
else { |
1734 |
else { |