docker
docker copied to clipboard
'recommended' opcache generates warnings
System
Image ID: 1e6634eeb3b3
(cuurrently "latest" tag)
App version: Nextcloud 24.0.1
DB: mariadb
Issue
The current image contains
# cat /usr/local/etc/php/conf.d/opcache-recommended.ini
...
opcache.interned_strings_buffer=16
...
The current version of Nextcloud produce following warning
- The PHP OPcache module is not properly configured. See the documentation ↗ for more information.
- The OPcache interned strings buffer is nearly full. To assure that repeating strings can be effectively cached, it is recommended to apply opcache.interned_strings_buffer to your PHP configuration with a value higher than 16.
I guess the thing is pretty self-explanatory but:
Steps to reproduce
Install and run the container. No heavy uploading was done.
W/A
Bind /usr/local/etc/php/conf.d/opcache-recommended.ini
to a local file system. Configure opcache for a bigger bufer.
This is also discussed in https://github.com/nextcloud/docker/issues/1758
duplicate of #1758