Stale OPcache

OPcache runs with validate_timestamps off, and a deploy did not reset it. The PHP servers kept running the old code against the new schema, and a share of requests failed.

What happens#

OPcache runs with validate_timestamps off, and a deploy did not reset it. The PHP servers kept running the old code against the new schema, and a share of requests failed.

How to prevent it#

A CI/CD Pipeline resets OPcache on every deploy. A restart clears the cache by hand.

The postmortem opens the first of these that you do not own yet:

  1. Continuous delivery

Components it hits#

App Server