Update docs for PHP Opcache use (#1717)

* Update docs for PHP Opcache use

* Make the Opcache mention even more concise
This commit is contained in:
Jan Domański 2020-05-22 19:12:15 +01:00 committed by GitHub
parent 406267e7d1
commit 5b34dbbedd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 3 deletions

View File

@ -168,7 +168,6 @@ FROM %%IMAGE%%:7.4-fpm-alpine
# Use the default production configuration
RUN mv "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini"
# Override with custom opcache settings
COPY config/opcache.ini $PHP_INI_DIR/conf.d/
```
In many production environments, it is also recommended to (build and) enable the PHP core OPcache extension for performance. See [the upstream OPcache documentation](https://www.php.net/manual/en/book.opcache.php) for more details.