[Koha-bugs] [Bug 17274] Add info about which memcached config is used to about.pl

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Sep 21 19:58:42 CEST 2016


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17274

--- Comment #6 from Tomás Cohen Arazi <tomascohen at gmail.com> ---
(In reply to Frédéric Demians from comment #5)
> Where is memcached server extracted from koha-conf.xml? I don't see it in
> Koha::Cache.pm.



koha::Cache.pm (86~93):
    $self->{'namespace'} ||= $ENV{MEMCACHED_NAMESPACE};
    my @servers = split /,/, $ENV{MEMCACHED_SERVERS} || '';
    unless ( $self->{namespace} and @servers ) {
        my $koha_config = Koha::Config->read_from_file(
Koha::Config->guess_koha_conf() );
        $self->{namespace} ||= $koha_config->{config}{memcached_namespace} ||
'koha';
        @servers = split /,/, $koha_config->{config}{memcached_servers} // ''
            unless @servers;
    }

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list