Skip to content
ferkesh.HOSTING

How to Check for Stale PHP OPcache After a Deployment

Developer Resources 60 visualizações Markdown
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 .

Foi útil?

Obrigado pela sua opinião!

Ainda precisa de ajuda?

A equipa de apoio está disponível a qualquer hora para ajudar com o que não encontrar na base de conhecimento.