Skip to content

fix: opcache config — remove dead directives, enable JIT on prod images#107

Merged
jorge07 merged 1 commit into
jorge07:masterfrom
josecarlospeer-cloud:fix/opcache-config
Feb 21, 2026
Merged

fix: opcache config — remove dead directives, enable JIT on prod images#107
jorge07 merged 1 commit into
jorge07:masterfrom
josecarlospeer-cloud:fix/opcache-config

Conversation

@josecarlospeer-cloud

Copy link
Copy Markdown
Contributor

Fixes OPcache configuration across PHP 8.1, 8.2, 8.3.

Changes (both rootfs + devfs for each version):

  • Remove opcache.fast_shutdown — removed in PHP 7.2, generates warnings on 8.x (source)
  • Remove opcache.revalidate_freq — has no effect when validate_timestamps=0
  • Fix interned_strings_buffer: 8 → 16
  • Enable JIT (tracing mode) on prod images — best perf for web workloads
  • Disable JIT on dev images — Xdebug and JIT are incompatible
  • Enable validate_timestamps=1 on dev images for live code reload

Part of phase 2+3 modernisation.

- Remove opcache.fast_shutdown (removed in PHP 7.2, no-op on 8.x)
- Remove opcache.revalidate_freq (irrelevant when validate_timestamps=0)
- Fix interned_strings_buffer: 8 -> 16
- Enable JIT (tracing mode) on prod images
- Disable JIT on dev images (Xdebug + JIT are incompatible)
- Enable validate_timestamps on dev images (live reload during development)
Source: https://www.php.net/manual/en/opcache.configuration.php
@jorge07 jorge07 merged commit ed8ef60 into jorge07:master Feb 21, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants