[wp-trac] Re: [WordPress Trac] #2425: Pseudo-Cron

WordPress Trac wp-trac at lists.automattic.com
Sat Aug 19 06:49:29 GMT 2006


#2425: Pseudo-Cron
----------------------------+-----------------------------------------------
 Reporter:  ryan            |        Owner:  ryan 
     Type:  defect          |       Status:  new  
 Priority:  normal          |    Milestone:  2.1  
Component:  Administration  |      Version:  2.0.1
 Severity:  normal          |   Resolution:       
 Keywords:  cron            |  
----------------------------+-----------------------------------------------
Comment (by _ck_):

 Could someone please document how this works in general, either here or in
 the codex (and also point out since it's named wp-cron that it has
 absolutely in common with the plugin by the same name).

 So far all I have observed/learned is that in 2.1 wp-cron is periodically
 calling wordpress back through the web at regular intervals (and therefore
 messing up my stats, quite annoying).

 I'd definitely like to keep it's functionality for other plugins to hook
 into, but  admin with enough experience should be able to setup a real
 cron to call it internally via php instead of an external web call.

 '''remove_action('init', 'wp_cron');'''

 will apparently disable it's web based self-call

 Now how about some example code and suggested periodic time frame for a
 real cron to call it?

 I'll get us started with what little I know, on most cpanel servers, this
 will call a php file every 20 minutes (offset by 5 to avoid load from
 automated newsreaders set to the hour)

 '''5,25,45 * * * * /usr/local/bin/php'''
 /home/accountname/public_html/wordpress/example.php

 So what should I be calling instead of "example.php" ??

 ps. why is this ticket labeled as defect when it's clearly an enhancement?

-- 
Ticket URL: <http://trac.wordpress.org/ticket/2425>
WordPress Trac <http://wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list