modules/videopress/class.videopress-scheduler.php 1 location
|
@@ 70-81 (lines=12) @@
|
| 67 |
|
* |
| 68 |
|
* @return array |
| 69 |
|
*/ |
| 70 |
|
public function add_30_minute_cron_interval( $current_schedules ) { |
| 71 |
|
|
| 72 |
|
// Only add the 30 minute interval if it wasn't already set. |
| 73 |
|
if ( ! isset( $current_schedules['minutes_30'] ) ) { |
| 74 |
|
$current_schedules['minutes_30'] = array( |
| 75 |
|
'interval' => 30 * MINUTE_IN_SECONDS, |
| 76 |
|
'display' => 'Every 30 minutes' |
| 77 |
|
); |
| 78 |
|
} |
| 79 |
|
|
| 80 |
|
return $current_schedules; |
| 81 |
|
} |
| 82 |
|
|
| 83 |
|
/** |
| 84 |
|
* Activate a single cron |
sync/class.jetpack-sync-actions.php 1 location
|
@@ 198-206 (lines=9) @@
|
| 195 |
|
return true; |
| 196 |
|
} |
| 197 |
|
|
| 198 |
|
static function minute_cron_schedule( $schedules ) { |
| 199 |
|
if( ! isset( $schedules['1min'] ) ) { |
| 200 |
|
$schedules['1min'] = array( |
| 201 |
|
'interval' => 60, |
| 202 |
|
'display' => esc_html__( 'Every minute', 'jetpack' ) |
| 203 |
|
); |
| 204 |
|
} |
| 205 |
|
return $schedules; |
| 206 |
|
} |
| 207 |
|
|
| 208 |
|
// try to send actions until we run out of things to send, |
| 209 |
|
// or have to wait more than 15s before sending again, |