title: What javascript method do I use to run a function once every 24 hours?
body: <p>I want to check my database once every 24 hours and delete posts that are past a certain date. I'm assuming I use setTimeout some how, but can I use that to get a function to run on it's own regularly? Does anyone have a link to an example of how to do this? </p>