diff options
Diffstat (limited to 'core/js/setupchecks.js')
-rw-r--r-- | core/js/setupchecks.js | 12 |
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'), |