[wp-hackers] cron overload - help!

Brent Shepherd brentswordpresslists at gmail.com
Mon Sep 7 16:34:09 UTC 2009


John, thanks so much for pasting the link to this ticket!

I lost a good few hours the other night trying to figure out why when i used
an $args array with multiple values, only the first value was being passed
to functions hooked onto the wp-cron event.


On Sun, Sep 6, 2009 at 4:01 AM, John Blackbourn
<johnbillion+wp at gmail.com<johnbillion%2Bwp at gmail.com>
> wrote:

> Are you passing an $args parameter with wp_clear_scheduled_hook()?
> There's an outstanding bug that means hooks with parameters aren't
> cleared with wp_clear_scheduled_hook(). See
> http://core.trac.wordpress.org/ticket/10468 .
>
> 2009/9/6 Steve Taylor <steve at sltaylor.co.uk>:
> > I experimented with wp_schedule_event() on a site a short while ago,
> > without luck. I found another solution, but recently I noticed that my
> > Media Temple GPU usage has flagged the wp-cron.php on that site as
> > taking up about 25% of the total processing time for all my sites.
> >
> > I used http://wordpress.org/extend/plugins/cron-view/, and sure
> > enough, my experiment has inadvertantly left a HUGE number of
> > scheduled events for that hook.
> >
> > When I try to run wp_clear_scheduled_hook( 'my_hook' ), the page
> > doesn't seem to load. The site's running OK, but I really need a way
> > of clearing all these events out. I'm not sure if
> > wp_unschedule_event() is viable - and I've heard that
> > wp_clear_scheduled_hook() is just a wrapper for this anyway.
> >
> > Thanks for any tips...
> > _______________________________________________
> > wp-hackers mailing list
> > wp-hackers at lists.automattic.com
> > http://lists.automattic.com/mailman/listinfo/wp-hackers
> >
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>


More information about the wp-hackers mailing list