Repository navigation
Match 8.2/8.3/8.5 wordpress env to 8.4 - #9
Merged
Merged
Conversation
2b007b7 ("wordpress env updates") only touched 8.4's Dockerfile.wordpress, so the other versions kept validate_timestamps=0 and the base 60s max_execution_time. Bring them in line: - PHP_OPCACHE_VALIDATE_TIMESTAMPS=1, PHP_OPCACHE_REVALIDATE_FREQ=60, so sites that update code in place (bind-mounted /app, plugin/theme installs) pick it up within a minute instead of serving stale or mixed bytecode until a restart. Sites that restart on deploy can still set it back to 0. - PHP_MAX_EXECUTION_TIME=300 for long WordPress admin requests (updates, imports). The files are now identical to 8.4's apart from FROM.
Member
Author
Review round 1A fresh-context reviewer checked the following and found no code defects:
The reviewer also judged the code-review skill's general notes out of scope: the trade-offs of a 300s limit and timestamp validation are the requested 8.4 behaviour, and the duplicated per-version files predate this PR. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
2b007b7 ("wordpress env updates", 2026-08-27) changed only
php/8.4/frankenphp/Dockerfile.wordpress, so the 8.2, 8.3 and 8.5 wordpress images drifted. Some apps update code without a container restart (bind-mounted/app, plugin or theme installs). Withopcache.validate_timestamps=0, those apps serve stale bytecode, or a mix of old and new files, until someone restarts the container.What
Dockerfile.wordpressfor 8.2, 8.3 and 8.5 is now identical to 8.4's apart fromFROM:PHP_OPCACHE_VALIDATE_TIMESTAMPS=1,PHP_OPCACHE_REVALIDATE_FREQ=60: code changes are picked up within a minute. Sites that restart on deploy can still pass-e PHP_OPCACHE_VALIDATE_TIMESTAMPS=0.PHP_MAX_EXECUTION_TIME=300, up from the base image's 60, for long WordPress admin requests such as updates and imports.ENVline continuation forCADDY_MEDIA_PATHS(already valid on one line) and an imagick comment.wordpress-dev inherits
max_execution_time=300. It keeps its ownPHP_OPCACHE_REVALIDATE_FREQ=0, so it still revalidates on every request, as before.Testing
8.3-frankenphp-wordpresslocally on the published patched base and served a page through FrankenPHP. It reportedopcache.validate_timestamps=1,opcache.revalidate_freq=60,max_execution_time=300andopcache.max_accelerated_files=50000, on PHP 8.3.36.FROM.Rollout
Merging rebuilds the full 8.2, 8.3 and 8.5 FrankenPHP set: base, dev, wordpress and wordpress-dev. CI's change detection treats a change to
Dockerfile.wordpressas a change to the baseDockerfiletoo. The base rebuilds are no-ops: they build from cache and produce the same patched PHP. If pecl.php.net returns 500s again, re-run the failed jobs.