WP Run periodictask every 5 minute

217 views Asked by At

I've made an WP app, that checks in-game events of Guild Wars two. Looking up, MSDN states that the task will be run every 30 minute. Thing is, at 30 minute, an event might already be over, is there away to make it run 5 minute, or an alternative?

All the task needs to do, it download some text from a webpage and display a notification if an event is due.

2

There are 2 answers

2
Kevin Gosse On

Unfortunately, there's currently no way to make a periodic task run at shorter intervals.

The only alternative is using the push notifications, but it means that you need to host a server somewhere (or use a cloud-based service, like AppHarbor) to send the notifications.

0
Rowland Shaw On

To run more frequently then the normal background task schedule, you'd either need to "run under lockscreen" and handle it yourself, or offload the workload to a server that can create push notifications for you.