I don't think the variables are being cached - you should be pulling this dataset from your database whenever the script is run. I'd suspect that you are looking at an old dataset in the script. Check your logic. As far as I know, PHP doesn't cache variables - you have to purposefully do it with sessions or cookies in order for that to happen.