I'm making a multiplayer card game.
It uses Ajax to make PHP/SQL calls to a database.
It all works perfectly except for one BIG thing:
Ajax is caching results - so sometimes I get the state of the database as it was 5 or 10 minutes ago.
I've tried making the Request call unique by adding the time or tickcount to it. But every so often that time or tickcount matches one that's been seen on a previous run, I get the cached result and it all falls apart.
I could try adding more random numbers to the Request, but there's always the chance that it'll match one already seen.
There has to be a less hacky way of stopping Ajax caching results (I've seen there's an ajaxSetup command to turn off the cache, but I have no idea where that would go in the files that Construct 2 creates)
It's driving me mad - I'm at my wit's end...
Please can someone help?