Closed aloco closed 3 years ago
I can confirm this and will get started on a fix for the next release.
Thanks a lot!!
Can you also confirm that PHP files in opcache are not invalidating? Do you need more information on this?
I have not checked the invalidation yet, but the docker container is not recreated when the setting is changed. To work around this now you can perform the following steps:
nitro.yaml
)docker container rm -f <yoursite.nitro>
)nitro apply
to recreate the container
Description
Hi,
we experienced some issues with opcache configuration. We enabled opcache via
nitro iniset
andopcache_enable
. We experienced issues with PHP files which were not invalidated and therefore wanted to disable opcache. After going through the configuration steps, opcache is still enabled. It seems like the container env vars are not updating correctly sincePHP_OPCACHE_ENABLE
is still set to1
after disabling via the nitro CLISteps to reproduce
nitro iniset
nitro iniset
PHP_OPCACHE_ENABLE
in container env is still1
Additional info
macOS 11.2 Docker Desktop 3.2.1
Nitro CLI: 2.0.5 Nitro gRPC: 2.0.5 Docker API: 1.41 (1.12 min) Docker CLI: 1.41