summaryrefslogtreecommitdiffstats
path: root/core/js/setupchecks.js
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2017-02-15 00:40:36 -0600
committerMorris Jobke <hey@morrisjobke.de>2017-02-22 23:45:48 -0600
commitcee8853658703358a8e564c414807c632ee0d5ea (patch)
treeb7ecd1915099914b4d2f8ccec9c3fe16e7008107 /core/js/setupchecks.js
parent41276f720b838681d571c40da937e0b143c9fdf6 (diff)
downloadnextcloud-server-cee8853658703358a8e564c414807c632ee0d5ea.tar.gz
nextcloud-server-cee8853658703358a8e564c414807c632ee0d5ea.zip
Show info in admin settings about PHP opcache if disabled
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'core/js/setupchecks.js')
-rw-r--r--core/js/setupchecks.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/core/js/setupchecks.js b/core/js/setupchecks.js
index 4d2097a5b5d..fcbbba6af62 100644
--- a/core/js/setupchecks.js
+++ b/core/js/setupchecks.js
@@ -148,6 +148,18 @@
type: OC.SetupChecks.MESSAGE_TYPE_ERROR
});
}
+ if(!data.isOpcacheProperlySetup) {
+ messages.push({
+ msg: t(
+ 'core',
+ 'The PHP Opcache is not properly configured. <a target="_blank" rel="noreferrer" href="{docLink}">For better performance we recommend ↗</a> to use following settings in the <code>php.ini</code>:',
+ {
+ docLink: data.phpOpcacheDocumentation,
+ }
+ ) + "<pre><code>opcache.enable=On\nopcache.enable_cli=1\nopcache.interned_strings_buffer=8\nopcache.max_accelerated_files=10000\nopcache.memory_consumption=128\nopcache.save_comments=1\nopcache.revalidate_freq=1</code></pre>",
+ type: OC.SetupChecks.MESSAGE_TYPE_INFO
+ });
+ }
} else {
messages.push({
msg: t('core', 'Error occurred while checking server setup'),