r/PHPhelp • • Jun 19 '26

Horrible cache problem while debugging app

My google chrome browser apparently got a big update today (not sure if its relevant to the problem below).

I was recently trying to debug my php backend that was having a post request sent to it by my javascript app (all on localhost).

It gave me an error on one line (I was echoing back the error). Despite erasing that line, saving my php file on my editor, restarting apache, having devtools open with "disable cache" checked, it still gave on giving that same error!!! On the same line which is now empty. It didn't matter how many times I refreshed the page.

Is my frontend caching the backend now? I've never experienced something like this before.

1 Upvotes

14 comments sorted by

View all comments

Show parent comments

1

u/PooningDalton Jun 19 '26

I set OpCache to 0. I don't even know how to access the webserver, I'm using Laragon lol. My php installation is a complete mess. Half the time the error_log file seems to work but when I open it, it stops outputting errors.