I am a having an unexpected behaviour with Laravel executed code not being the same as the updated code. Seems like PHP7.0-FPM or another component is keeping it in memory and only hard reboot to the machine will refresh the code.
i.e I have a file `SomeController.php' which does
echo 'version1';
After performing a git pull the new file is now:
echo 'version2';//verified via ssh that this is the actual content
But when running the code output still shows version1
I've tried:
sudo service php7.0-fpm reload //no success
sudo service php7.0-fpm restart //no success
sudo service nginx restart //no success
sudo reboot //the only thing that works
This is definitely some sort of code caching issue since the hard reboot solves this every time.
To my understanding sudo service php7.0-fpm reload
should do the job.
Any suggestions will be greatly appreciated.
via Yani