craftcms / nitro

Speedy local dev environment for @craftcms.
https://getnitro.sh
MIT License
178 stars 24 forks source link

ini setting opcache_validate_timestamps doesn't seem to work #435

Closed darrylhein closed 2 years ago

darrylhein commented 2 years ago

Description

I've set opcache_validate_timestamps to true through nitro iniset and confirmed it's in the config. I've applied and restarted a number of times but it doesn't seem to take effect. The ENV PHP_OPCACHE_VALIDATE_TIMESTAMPS is also 0 in the phpinfo()

Adding a .user.ini with the follow does enable it:

[opcache]
opcache.validate_timestamps=1

Steps to reproduce

  1. Set opcache_validate_timestamps to true using nitro iniset. Accept to apply immediately.
  2. Create phpinfo() & check local value for opcache.validate_timestamps.

Additional info

wiljonbolten commented 2 years ago

@darrylhein I provided a PR where this setting is working correctly, probably will be released in the future. For the time being you could checkout my branch, based on current version 2.0.9, which has the fix in it.

Note: it will require you to build Nitro yourself.

jasonmccallister commented 2 years ago

Just tagged 2.0.10 with this change!

Let me know if this is still an issue for you!