Skip to content
ferkesh.HOSTING

How to Check for Stale PHP OPcache After a Deployment

Workflow: Check the release path; Read runtime settings privately; Control the experiment; Retest across workers.

A deployment can update files while workers still execute a previous cached version. Confirm the reported code version and the actual PHP handler before changing cache settings.

Procedure

  1. Check the release path. Use a sanctioned health signal or logs to compare a request’s effective build with the expected deployment. Verify the current document root and any release symlinks.
  2. Read runtime settings privately. Use the approved panel or runtime diagnostics to inspect timestamp validation settings for the web process. Keep PHP information and private paths out of public endpoints.
  3. Control the experiment. On staging, reproduce the old behavior and use the host’s documented cache invalidation or worker reload. Do not introduce an unauthenticated cache-clearing endpoint.
  4. Retest across workers. Compare repeated requests and every relevant application entry point. Confirm receipt of the intended version and document how the deployment pipeline should handle the cache.

Official references

Ferkesh Hosting. Last reviewed .

这对您有帮助吗?

感谢您的反馈!

仍需帮助?

如果知识库未能解答您的问题,支持团队全天候为您服务。