Changeset 6571
- Timestamp:
- 02/08/2018 06:48:51 PM (7 years ago)
- Location:
- sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/jobs
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/jobs/class-manager.php
r6287 r6571 19 19 // The actual cron hooks. 20 20 add_action( 'plugin_directory_meta_sync', array( __NAMESPACE__ . '\Meta_Sync', 'cron_trigger' ) ); 21 add_action( 'plugin_directory_plugin_support_resolved', array( __NAMESPACE__ . '\Plugin_Support_Resolved', 'cron_trigger' ) ); 21 22 add_action( 'plugin_directory_svn_sync', array( __NAMESPACE__ . '\SVN_Watcher', 'cron_trigger' ) ); 22 23 add_action( 'plugin_directory_update_api_check', array( __NAMESPACE__ . '\API_Update_Updater', 'cron_trigger' ) ); … … 29 30 add_action( 'pre_option_cron', array( $this, 'register_colon_based_hook_handlers' ), 100 ); 30 31 } 31 32 32 } 33 33 … … 36 36 */ 37 37 public function register_schedules( $schedules ) { 38 $schedules['every_30s'] = array(38 $schedules['every_30s'] = array( 39 39 'interval' => 30, 40 40 'display' => 'Every 30 seconds', 41 41 ); 42 $schedules['every_120s'] = array(42 $schedules['every_120s'] = array( 43 43 'interval' => 120, 44 44 'display' => 'Every 120 seconds', 45 ); 46 $schedules['half_hourly'] = array( 47 'interval' => 30 * MINUTE_IN_SECONDS, 48 'display' => 'Half Hourly', 45 49 ); 46 50 … … 225 229 } 226 230 227 228 229 231 /** 230 232 * Queue all of our cron tasks. … … 235 237 if ( ! wp_next_scheduled( 'plugin_directory_meta_sync' ) ) { 236 238 wp_schedule_event( time() + 60, 'hourly', 'plugin_directory_meta_sync' ); 239 } 240 if ( ! wp_next_scheduled( 'plugin_directory_plugin_support_resolved' ) ) { 241 wp_schedule_event( time() + 60, 'half_hourly', 'plugin_directory_plugin_support_resolved' ); 237 242 } 238 243 if ( ! wp_next_scheduled( 'plugin_directory_svn_sync' ) ) {
Note: See TracChangeset
for help on using the changeset viewer.