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

osroflo's avatar

Laravel view cache not clear until server is restarted

I am using digital ocean to host my laravel application:

  • Laravel 5.4
  • PHP 7
  • Nginx (no cache)
  • Digital Ocean Ubuntu 16
  • Laravel-boilerplate

When I do some update in a view (blade) in my local environment and then I deployed it to production the new changes are never shown. So far I've tried:

php artisan cache:clear
php artisan config:cache
php artisan view:clear
composer dump-autoload

The above php artisan commands are not clearing the cache. The only way I can clear the cache is by restarting the Digital Ocean VM.

But it is very annoying to restart the server every single time I update something.

Any help will be really appreciated.

Thanks

0 likes
3 replies
pavelpage's avatar

Has the same problem. The only thing which I can suggest - is to reload php-fpm service (or apache).

Please or to participate in this conversation.