duntuk
Verified User
- Joined
- Jan 23, 2007
- Messages
- 54
Been researching the following settings, but still not sure what are the best settings here for PHP-FPM (and multiple PHP-FPM version):
opcache.enable_cli
opcache.file_cache
Ref:
Currently my settings are, and using multiple PHP-FPM versions 7.2, 7.3, 7.4:
opcache.enable_cli = 0
opcache.file_cache = NULL
opcache.enable_cli : CURRENT documentation says "Enables the opcode cache for the CLI version of PHP" (which is command line PHP). However many sites say to leave this off.
opcache.file_cache : Been out since PHP 7.0; can't really see any recommendations for this setting. (This looks like a good feature to enable, as it acts as a fail-safe in case you exhaust your memory storage; and is suppose to make re-caching faster... But again, don't see much on this...)
opcache.enable_cli
opcache.file_cache
Ref:
OPcache recommendation wrong (opcache.enable_cli=1) · Issue #1439 · nextcloud/documentation
I've been meaning to open an issue for this for a while now, but never got around to it. The recommendation to set opcache.enable_cli=1 is actually bad for performance. I am not sure who came up wi...
github.com
Currently my settings are, and using multiple PHP-FPM versions 7.2, 7.3, 7.4:
opcache.enable_cli = 0
opcache.file_cache = NULL
opcache.enable_cli : CURRENT documentation says "Enables the opcode cache for the CLI version of PHP" (which is command line PHP). However many sites say to leave this off.
opcache.file_cache : Been out since PHP 7.0; can't really see any recommendations for this setting. (This looks like a good feature to enable, as it acts as a fail-safe in case you exhaust your memory storage; and is suppose to make re-caching faster... But again, don't see much on this...)