diff options
author | Cthulhux <git@tuxproject.de> | 2018-05-07 20:46:19 +0200 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2018-07-11 16:08:40 +0200 |
commit | f6f49c77f7d013e5713c964d4d7e3d4b4eedc636 (patch) | |
tree | 98a175eda7b7dbd82d89e219d7c322d549f7024e /core/js/setupchecks.js | |
parent | 229289d206c954baede095e2bae2f34915471a44 (diff) | |
download | nextcloud-server-f6f49c77f7d013e5713c964d4d7e3d4b4eedc636.tar.gz nextcloud-server-f6f49c77f7d013e5713c964d4d7e3d4b4eedc636.zip |
opcache module check
Improved the speed of isOpcacheProperlySetup() (instant return instead of continuing when we're already failed), added a check for the opcache extension itself. Potentially fixes #9410
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'core/js/setupchecks.js')
-rw-r--r-- | core/js/setupchecks.js | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/core/js/setupchecks.js b/core/js/setupchecks.js index 75d335043ac..93072981e99 100644 --- a/core/js/setupchecks.js +++ b/core/js/setupchecks.js @@ -233,7 +233,18 @@ type: OC.SetupChecks.MESSAGE_TYPE_ERROR }); } - if(!data.isOpcacheProperlySetup) { + if(!data.hasOpcacheLoaded) { + messages.push({ + msg: t( + 'core', + 'The PHP OPcache module is not loaded. <a target="_blank" rel="noreferrer noopener" href="{docLink}">For better performance it is recommended</a> to load it into your PHP installation.', + { + docLink: data.phpOpcacheDocumentation, + } + ), + type: OC.SetupChecks.MESSAGE_TYPE_INFO + }); + } else if(!data.isOpcacheProperlySetup) { messages.push({ msg: t( 'core', |