Why is my PHP app still running old code after I deployed and cleared Laravel caches? #41
Answered
by
Kevinchamplin
Kevinchamplin
asked this question in
Q&A
-
|
Why is my PHP app still running old code after I deployed and cleared Laravel caches? |
Beta Was this translation helpful? Give feedback.
Answered by
Kevinchamplin
Jun 13, 2026
Replies: 1 comment
-
|
PHP-FPM with OPcache caches compiled bytecode in the worker processes, and it keeps serving the old code until the workers recycle. After deploying new code, reload/restart the FPM pool (or call opcache_reset()) — clearing Laravel's own caches isn't enough because the staleness is at the PHP engine layer. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Kevinchamplin
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
PHP-FPM with OPcache caches compiled bytecode in the worker processes, and it keeps serving the old code until the workers recycle. After deploying new code, reload/restart the FPM pool (or call opcache_reset()) — clearing Laravel's own caches isn't enough because the staleness is at the PHP engine layer.