dongyan6235
2017-08-01 08:30
浏览 42
已采纳

如何在wordpress上定期执行PHP脚本/插件?

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?

图片转代码服务由CSDN问答提供 功能建议

我需要更新我基于在线API存储的数据库。 我需要定期进行API调用。 在定期PHP脚本执行方面,什么是好策略?

  • 写回答
  • 好问题 提建议
  • 追加酬金
  • 关注问题
  • 邀请回答

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.

    评论
    解决 无用
    打赏 举报

相关推荐 更多相似问题