Merge pull request #15471 from nextcloud/backport/15468/stable16
[stable16] Remove recommendation for opcache on CLI
This commit is contained in:
commit
a1236d0125
3 changed files with 2 additions and 6 deletions
|
@ -320,7 +320,7 @@
|
||||||
{
|
{
|
||||||
docLink: data.phpOpcacheDocumentation,
|
docLink: data.phpOpcacheDocumentation,
|
||||||
}
|
}
|
||||||
) + "<pre><code>opcache.enable=1\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>",
|
) + "<pre><code>opcache.enable=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
|
type: OC.SetupChecks.MESSAGE_TYPE_INFO
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
@ -778,7 +778,7 @@ describe('OC.SetupChecks tests', function() {
|
||||||
|
|
||||||
async.done(function( data, s, x ){
|
async.done(function( data, s, x ){
|
||||||
expect(data).toEqual([{
|
expect(data).toEqual([{
|
||||||
msg: 'The PHP OPcache is not properly configured. <a href="https://example.org/link/to/doc" rel="noreferrer noopener">For better performance it is recommended</a> to use the following settings in the <code>php.ini</code>:' + "<pre><code>opcache.enable=1\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>",
|
msg: 'The PHP OPcache is not properly configured. <a href="https://example.org/link/to/doc" rel="noreferrer noopener">For better performance it is recommended</a> to use the following settings in the <code>php.ini</code>:' + "<pre><code>opcache.enable=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
|
type: OC.SetupChecks.MESSAGE_TYPE_INFO
|
||||||
}]);
|
}]);
|
||||||
done();
|
done();
|
||||||
|
|
|
@ -413,10 +413,6 @@ Raw output
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!$iniWrapper->getBool('opcache.enable_cli')) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
if($iniWrapper->getNumeric('opcache.max_accelerated_files') < 10000) {
|
if($iniWrapper->getNumeric('opcache.max_accelerated_files') < 10000) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue