Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Laravel 5.8 is not always updating newly written code

I'm running a Laravel 5.8 project on PHP 7.2 and I use PhpStorm is my editor on Mac OS 10.15.4.

Since recent, when I write new code, most of the time in a Class, my changes do not take effect in the application itself. PhpStorm and other editors show my new or edited code, but nothing changes in my application. The only thing that solves this issue is a full reboot of my computer. Doing a full reboot and starting everything up again takes a lot of time and time is precious.

What I have tried other than a full reboot:

  • Restarting PHP
  • Restarting Nginx
  • Restarting PhpStorm
  • Restarting using valet restart
  • Removing the project and cloning from git repo again
  • Clearing my config > php artisan config:clear
  • Caching my config > php artisan config:cache

None of these had any successful results so far.

What could cause this weird bug and is there a way to fix this? Any help or information regarding this is well-received.

like image 801
Seppe Avatar asked Nov 21 '25 15:11

Seppe


1 Answers

You can add code

ini_set("soap.wsdl_cache_enabled", 0);

or manualy remove all wsdl* files in your /tmp folder on the server.

WSDL files are cached in your default location for all cache files defined in php.ini. Same location as your session files.

In PHP how can you clear a WSDL cache?

like image 71
Shohijahon Ikromov Avatar answered Nov 24 '25 07:11

Shohijahon Ikromov



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!