如何设置WordPress插件来执行cron作业? [英] How do I set WordPress plugins to do cron jobs?

查看:259
本文介绍了如何设置WordPress插件来执行cron作业?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在寻找一个用于Atom / Rss feeds的自动发布WordPress插件(必须支持Atom)。问题是,我尝试4自动博客插件,但没有人按时运行其cron作业。我希望插件每小时更新一次,或者每天至少4次。我试过,但我不明白WordPress如何工作cron。我设置插件每60分钟更新一次,但没有一个。

We are looking for an autoblogging WordPress plugin for Atom/Rss feeds (must support Atom). The problem is, I tried 4 autoblogging plugins, but none of them run its cron jobs on time. I want the plugin to update every hour, or at least 4 times a day. I tried but I don't understand how WordPress does cron jobs. I set the plugins to update every 60 minutes, but none of them does. When the time has passed, they just write that the time has passed but they don't update the feeds.

以下是我尝试的插件的名称:

Here are the names of the plugins I tried:


  1. 自动打印版本2.9.1

  2. FeedWordPress版本2011.1019

  3. WPeMatico Version 0.91.1Beta

  4. Cyber​​Syn版本2.11

  1. AutoBlogged Version 2.9.1
  2. FeedWordPress Version 2011.1019
  3. WPeMatico Version 0.91.1Beta
  4. CyberSyn Version 2.11

您知道其他自动登录插件Atom订阅源或您是否知道如何解决此问题?

Do you know other plugin for autoblogging from Atom feeds or do you know how to fix this problem?

谢谢!
Uri。

Thanks! Uri.

推荐答案

WordPress cron作业只有在用户访问网站时才会触发你的网站dosnt有很多的流量,然后crons不会准时着火,你最好创建一个php页面,其中调用每个你想要的功能,

The wordpress cron jobs are only fired(called) when a user visits the website, so if your site dosnt have a lot of traffic then the crons wont fire on time, your better to create a php page which has a call to each of the functions you want to fire,

然后使用您的主机控制面板,检查您是否有访问cron作业,

then using your hosting control panel, check to see if you have access cron jobs,

然后简单地创建一个cron作业设置时间间隔,并将其指向php

then simply create a cron job set the time interval and point it to the php page you wish to call at that time,

然后,当cron作业运行的时候,它找到php文件并运行它,

Then when the time comes for the cron job to run, it locates the php file and runs it,

但这再次取决于您的托管选项,
看看这里,如果您使用:

but again this depends on your hosting options, have a look here, if you use:

Cpanel: http://www.upstartblogger .com / how-to-create-a-cron-job-in-cpanel

Plesk: http://myhosting.com/kb/How_to_Set_Up_Cron_Jobs_in_Plesk_9.5

GoDaddy: http ://support.godaddy.com/help/article/3547/creating-a-basic-cron-job

Marty

这篇关于如何设置WordPress插件来执行cron作业?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆