Should I use set_transient or update_option?
A transient is not like a wp_cron job in that they don’t update themselves when a set time has elapsed. A transient will update when an attempt is made to access the data. If you actually do need an approximately hourly update you will need to use wp_cron, though in practice it may not matter … Read more