I need to update a database that I have stored localy based on an online API. I need to make API calls periodically. What is a good strategy when it comes to periodical PHP script execution?
1条回答 默认 最新
- dongzhun6952 2017-08-01 08:32关注
Use a cron job. There are tons of tutorials out there on how to do that. There is even a Wordpress Cron Job scheduler plugin (this link is only for reference, I'm not endorsing it specifically). You can find it here. Note that you will need administrative rights on the server to execute cron jobs.
本回答被题主选为最佳回答 , 对您是否有帮助呢?解决 无用评论 打赏 举报