Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
0
votes
1
answer
626
views
How to set-up multiple cron task with wp_schedule_event so that they do not overlap?
I'm using a cron to take data from Facebook and i have divided the job into three calls, to avoid making to many call all toghether, now how do i set up calls so that they don't overlap? … // Set the CRON for pages
wp_schedule_event( current_time( 'timestamp' ), self::FB_CRON_FREQUENCY, self::FB_CRON_PAGES, array( Ai1ec_Facebook_Graph_Object_Collection::FB_PAGE ) );
// Set the CRON for …
0
votes
Accepted
How to set-up multiple cron task with wp_schedule_event so that they do not overlap?
Ok that was pretty easy
// Set the CRON for pages
wp_schedule_event( current_time( 'timestamp' ) + 450, self::FB_CRON_FREQUENCY, self::FB_CRON_PAGES, array( Ai1ec_Facebook_Graph_Object_Collection::FB_PAGE … the CRON for users
wp_schedule_event( current_time( 'timestamp' ) + 1350, self::FB_CRON_FREQUENCY, self::FB_CRON_USERS, array( Ai1ec_Facebook_Graph_Object_Collection::FB_USER ) ); …
3
votes
0
answers
57
views
How ( and mostly at what time ) can i prevent the alternate cron from running?
I'm using the alternate cron version, but i need to prevent it from running on some calls, how can i do this? … empty($_POST) || defined('DOING_AJAX') )
return;
but i've tried defining define('DOING_AJAX', true) and it never stops the cron. Maybe i'm defining the constant too late. …