Forum Discussion
lisakb140
7 years agoVisitor
"squirreltown" wrote:"lisakb140" wrote:
.has anyone else had a similar experience with flush()?
If you're not flush()-ing. the data in question won't be saved. Now, maybe that's what you want, and maybe not. If you are having trouble with things persisting, it means you are not deleting the right things, when you think you are.
Thanks, yes, I'm using this when a user logs out of the channel. When I included flush() in this deleteRegistry function, even after going through the steps of "logging out", it still seemed like they would be logged in.
I guess what I don't understand is why there would be a call to persist data in a function that is supposed to be deleting a registry...it seems counter-productive!