Support the ongoing development of Laravel.io →
Configuration Cache Installation

I am running a Laravel application on Forge and have run into an odd issue when auto deploying my code. Most of the optimized compiled PHP classes properly clear out as part of the deployment process however a few classes refuse to "clear out", instead the old code keeps executing when called, even though the new code is physically present on the server.

The classes that seem to be having issues are in my app/Classes/[dir] folder. Anything in my controllers/models/services etc appear to be updating and executing just fine.

This is my deploy script:

  • git pull origin master
  • composer install --no-interaction --no-dev --prefer-dist
  • php artisan migrate --force
  • php artisan queue:restart
  • php artisan cache:clear
  • php artisan view:clear
  • php artisan clear-compiled
  • sudo service php7.0-fpm reload

I added the final line for the fpm reload at the suggestion of Taylor Otwell via support chat but still no luck.

The only way I have been able to get the deployed code to properly execute is to reboot the server.

Does any have any ideas on why this is happening and how to fix it.

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

dgrigg dgrigg Joined 2 Sep 2016

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.