@@ -, +, @@ --- about.pl | 12 +++++++++++- koha-tmpl/intranet-tmpl/prog/en/modules/about.tt | 13 ++++++++++++- 2 files changed, 23 insertions(+), 2 deletions(-) --- a/about.pl +++ a/about.pl @@ -81,12 +81,22 @@ my $effective_caching_method = ref($cache->cache); # FIXME What are the consequences of that?? my $is_memcached_still_active = $cache->set_in_cache('test_for_about_page', "just a simple value"); +my $where_is_memcached_config = 'nowhere'; +if ( $ENV{MEMCACHED_SERVERS} and C4::Context->config('memcached_servers') ) { + $where_is_memcached_config = 'both'; +} elsif ( $ENV{MEMCACHED_SERVERS} and not C4::Context->config('memcached_servers') ) { + $where_is_memcached_config = 'ENV_only'; +} elsif ( C4::Context->config('memcached_servers') ) { + $where_is_memcached_config = 'config_only'; +} + $template->param( effective_caching_method => $effective_caching_method, memcached_servers => $memcached_servers, memcached_namespace => $memcached_namespace, is_memcached_still_active => $is_memcached_still_active, - memcached_running => Koha::Caches->get_instance->memcached_cache + where_is_memcached_config => $where_is_memcached_config, + memcached_running => Koha::Caches->get_instance->memcached_cache, ); # Additional system information for warnings --- a/koha-tmpl/intranet-tmpl/prog/en/modules/about.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/about.tt @@ -69,7 +69,18 @@ [% END %] [% ELSE %] unknown - [% END %] + [% END %] | + Config read from: + [% SWITCH where_is_memcached_config %] + [% CASE 'config_only' %] + koha-conf.xml + [% CASE 'ENV_only' %] + ENV Note that the right place to define the memcached config is in your $KOHA_CONF file + [% CASE 'both' %] + ENV and koha-conf.xml Note that the right place to define the memcached config is in your $KOHA_CONF file. To avoid any misunderstanding you whould not export the memcached config from ENV. + [% CASE # nowhere %] + Nowhere Note that the right place to define the memcached config is in your $KOHA_CONF file. Currently you do not have a valid memcached configuration defined. + [% END %] [% IF effective_caching_method != 'Cache::Memcached::Fast' %] | Effective caching method: [% effective_caching_method %] [% END %] --