This might seem like a very newbish thing to ask, but I'm trying to learn how to create a cron for a XenForo addon. For this addon I'm creating it has a datawriter runs a whole bunch of code after postSave. I essentially want to do the same thing except have it run each time the cron is scheduled. What would be the best way to accomplish doing this? If it's easier to look at my code I could post my commit to github and have you all take a look. Let me know what works best.