I have a laravel application in a shared hosting and in production sometimes when there is an error in the code it shows the cached blade instead of 500 error.
Most of the times it shows 500 error but occasionally it shows the cached blade. It is kind of confusing because I dont know at the begining that there is an error.
In the .env file APP_DEBUG is set to false, but it also happens if it is set to true.
This never happens in local, only in production in the shared hosting.
Does anyone know why this happens and how to always show 500 error?
Thanks. The only time I have problems with cache is when there is a 500 error. For any other new changes the blade always updates. I will check with the shared hosting company.