Bug 7533: Add a warning to the about page if template_cache_dir is not set
We need to tell the administrators that it would be great for them to set this config entry. Test plan: - Do not set template_cache_dir and confirm that you see the warning - Set template_cache_dir and confirm that you do not see the warning Signed-off-by: Magnus Enger <magnus@libriotech.no> Both templates for koha-conf.xml are updated. After applying the patach a warning was correctly displayed. After adding template_cache_dir to koha-conf.xml and restarting memcached it went away. Signed-off-by: Nick Clemens <nick@bywatersolutions.com> Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
This commit is contained in:
parent
819cea62f2
commit
7d140258a0
2
about.pl
2
about.pl
|
|
@ -128,6 +128,7 @@ my $errZebraConnection = C4::Context->Zconn("biblioserver",0)->errcode();
|
|||
my $warnIsRootUser = (! $loggedinuser);
|
||||
|
||||
my $warnNoActiveCurrency = (! defined Koha::Acquisition::Currencies->get_active);
|
||||
|
||||
my @xml_config_warnings;
|
||||
|
||||
my $context = new C4::Context;
|
||||
|
|
@ -307,6 +308,7 @@ $template->param(
|
|||
errZebraConnection => $errZebraConnection,
|
||||
warnIsRootUser => $warnIsRootUser,
|
||||
warnNoActiveCurrency => $warnNoActiveCurrency,
|
||||
warnNoTemplateCaching => ( C4::Context->config('template_cache_dir') ? 0 : 1 ),
|
||||
xml_config_warnings => \@xml_config_warnings,
|
||||
warnStatisticsFieldsError => $warnStatisticsFieldsError,
|
||||
);
|
||||
|
|
|
|||
|
|
@ -131,7 +131,7 @@
|
|||
|
||||
<div id="sysinfo">
|
||||
[% IF warnPrefBiblioAddsAuthorities || warnPrefEasyAnalyticalRecords || warnPrefAnonymousPatron || warnPrefAnonymousPatron_PatronDoesNotExist ||
|
||||
warnNoActiveCurrency || QueryParserError || warnIsRootUser || xml_config_warnings.size || AutoSelfCheckPatronDoesNotHaveSelfCheckPerm || AutoSelfCheckPatronHasTooManyPerm || warnStatisticsFieldsError %]
|
||||
warnNoActiveCurrency || QueryParserError || warnIsRootUser || xml_config_warnings.size || AutoSelfCheckPatronDoesNotHaveSelfCheckPerm || AutoSelfCheckPatronHasTooManyPerm || warnStatisticsFieldsError || warnNoTemplateCaching %]
|
||||
[% IF (warnIsRootUser) %]
|
||||
<h2>Warning regarding current user</h2>
|
||||
<p>You are logged in as the database administrative user. This is not recommended because some parts of Koha will not function as expected when using this account.</p>
|
||||
|
|
@ -139,7 +139,7 @@
|
|||
[% END %]
|
||||
|
||||
[% IF warnPrefBiblioAddsAuthorities || warnPrefEasyAnalyticalRecords || warnPrefAnonymousPatron || warnPrefAnonymousPatron_PatronDoesNotExist ||
|
||||
warnNoActiveCurrency || QueryParserError || AutoSelfCheckPatronDoesNotHaveSelfCheckPerm || AutoSelfCheckPatronHasTooManyPerm || warnStatisticsFieldsError%]
|
||||
warnNoActiveCurrency || QueryParserError || AutoSelfCheckPatronDoesNotHaveSelfCheckPerm || AutoSelfCheckPatronHasTooManyPerm || warnStatisticsFieldsError || warnNoTemplateCaching %]
|
||||
<h2>Warnings regarding the system configuration</h2>
|
||||
<table>
|
||||
<caption>Preferences and parameters</caption>
|
||||
|
|
@ -183,6 +183,12 @@
|
|||
The patron used for the self checkout module at the OPAC has too many permissions. They should only have circulate => self_checkout.
|
||||
</td></tr>
|
||||
[% END %]
|
||||
[% IF warnNoTemplateCaching %]
|
||||
<tr><th scope="row"><b>Warning</b> </th><td>
|
||||
You are missing the <template_cache_dir> entry in your koha-conf.xml file.
|
||||
That will bring a performance boost to enable it.
|
||||
</td></tr>
|
||||
[% END %]
|
||||
</table>
|
||||
[% END %]
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue