Big-brain thinking right here. You definitely want this on in your dev env, but in an immutable production image, there's no need for it.
If your immutable Docker PHP-FPM container still ships with
opcache.validate_timestamps=1, PHP is firing stat() syscalls on thousands of vendor files every second just to check if code changed on disk. Flipping opcache.validate_timestamps=0 in production removes all that…commit d115eb7
Spot on. Keep it 1 locally so code edits reload instantly, lock it to 0 in the prod image, and let container replacement handle cache invalidation.