Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

cshelswell's avatar

Deployed Changes aren't Showing on Site

This is a really weird one and has been working so I'm not sure what's broken it but when I push all my code up to forge then deploy it the changes don't show.

If I ssh in to the server and look at the code there, the new code is showing it's just not showing on the site. The only way I've got it to work is by rebooting the server but that's obviously not a great solution.

I've tried view:clear, php artisan optimize etc but with no luck. I'm not sure what service could be stopping the files updating.

Any ideas would be great. Thanks

0 likes
5 replies
willvincent's avatar

You've probably got php opcode caching or something along those lines enabled on the server. So while you don't need to reboot the server you would probably need to restart the webserver and/or php processes.

cshelswell's avatar

Sorry I should have said I did try restarting nginx. Also I use cloudflare so I turned that off to test but still same problem

cshelswell's avatar

@willvincent it seems that opcace is enabled so that probably is the issue. I don't know why it was all working before.

I've updated php but always kept my original php.ini file

willvincent's avatar
Level 54

To be clear you want opcache enabled.. your performance would very noticeably suffer without it.

But since you are running nginx, restarting that process won't make a difference, you need to restart your php-fpm process. Unlike is often the case with apache, php does not get built as a module for the webserver directly, but runs as it's own separate process.

1 like
cshelswell's avatar

@willvincent awesome thanks for that. I'll give it a go tomorrow and see how I go. Thanks for the advice :)

Please or to participate in this conversation.