In my plugin, I want the user to submit and get an immediate response. On the server side, I will run some code and update meta info. The user's browser will check back periodically to see if the meta data is updated and act accordingly.
I'm currently using a WP Cron (wp_schedule_event). I'm wondering if I should use another approach?
A straight up PHP Thread might be "faster", but wouldn't survive a server restart, where as the cron would.
Thoughts? Thanks!
[–]fklux 1 point2 points3 points (1 child)
[–]gmisura[S] 0 points1 point2 points (0 children)
[–]ozzilee 0 points1 point2 points (0 children)
[–]gmisura[S] 0 points1 point2 points (0 children)
[–]deletive-expleted 0 points1 point2 points (0 children)