Would setting REAL cronjob to run wp-pseudo-cron in WordPress work?

Discussion in 'PHP' started by SuperDennis, Jul 4, 2009.

  1. #1
    Hello,

    I have a blog, which I run on WordPress, and I need an action performed each an hour, but there is a very low and unstable traffic on it, thus wp-pseudo-cron doesn't work properly too, because it depends on visitors traffic (as I understand... am I right?). While I need cron performed independently from blog traffic. I have been struggling to this issue for quite a long time, and I came to a thought that once my blog is run on Linux I can setup real Cronjob program on my server to execute wp-pseudo-cron (i.e. /blog/wp-cron.php as I assume... am I right?) each hour, so that it works on stable basis. Would that work? Could anyone give me an example of how to do that? Maybe there should be scheduled any other files besides /blog/wp-cron.php?

    Any help would be greatly appreciated!
     
    SuperDennis, Jul 4, 2009 IP
  2. Sky AK47

    Sky AK47 Member

    Messages:
    298
    Likes Received:
    8
    Best Answers:
    1
    Trophy Points:
    45
    #2
    I couldn't find the 'wp-pseudo-cron' for wordpress, what does it do?
    But, what you stated should work fine. I'm not really into cron jobs, but I believe it's different per host.
    This is what I use on my host:
    /usr/local/php5/bin/php /home/ftpuser/domain.com/cronfile.php
    Code (markup):
     
    Sky AK47, Jul 4, 2009 IP
  3. thuankkk

    thuankkk Active Member

    Messages:
    503
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    95
    #3
    thuankkk, Jul 6, 2009 IP
  4. SuperDennis

    SuperDennis Peon

    Messages:
    97
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Thanks much )
     
    SuperDennis, Aug 21, 2009 IP