TIL my loop variables were the reason my site kept crashing at 2am
I spent 3 nights debugging a script that only broke when nobody was watching, turned out I was using a global counter inside a for loop and it was doubling up on every request after the first one. Has anyone else had a bug that only shows up under weird conditions like that?