WordPress.org

Making WordPress.org


Ignore:
Timestamp:
01/19/2017 04:33:23 AM (3 years ago)
Author:
dd32
Message:

Plugin Directory: Add a custom table containing a subset of plugin meta used for api.wordpress.org/plugins/update-check/.

See #2112

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/jobs/class-manager.php

    r4523 r4727  
    1919
    2020        // The actual cron hooks.
    21         add_action( 'plugin_directory_meta_sync', array( __NAMESPACE__ . '\Meta_Sync', 'cron_trigger' ) );
    22         add_action( 'plugin_directory_svn_sync',  array( __NAMESPACE__ . '\SVN_Watcher', 'cron_trigger' ) );
    23        
     21        add_action( 'plugin_directory_meta_sync',        array( __NAMESPACE__ . '\Meta_Sync', 'cron_trigger' ) );
     22        add_action( 'plugin_directory_svn_sync',         array( __NAMESPACE__ . '\SVN_Watcher', 'cron_trigger' ) );
     23        add_action( 'plugin_directory_update_api_check', array( __NAMESPACE__ . '\API_Update_Updater', 'cron_trigger' ) );
    2424
    2525        // Register the wildcard cron hook tasks.
     
    134134            wp_schedule_event( time(), 'every_30s', 'plugin_directory_svn_sync' );
    135135        }
     136        if ( ! wp_next_scheduled ( 'plugin_directory_update_api_check' ) ) {
     137            wp_schedule_event( time(), 'hourly', 'plugin_directory_update_api_check' );
     138        }
    136139    }
    137140
Note: See TracChangeset for help on using the changeset viewer.