Scheduling doesn’t work due to caching?
wp_schedule_event is only run when your site is visited and the scheduled time has past. If varnish is serving a non expired cached page then your visitor is not hitting WordPress. Schedules a hook which will be executed by the WordPress actions core on a specific interval, specified by you. The action will trigger when … Read more