Making WordPress.org


Ignore:
Timestamp:
09/02/2020 04:41:58 AM (5 years ago)
Author:
dd32
Message:

Plugin Directory: Jobs: Meta Sync: Run the sync twice hourly, and only sync download counts that have changed more than 10.

This is a performance boost for the ElasticSearch syncing which can have many thousands of plugins updating the download count by 1 every hour, which slows down indexing for everything else.

File:
1 edited

Legend:

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

    r10209 r10230  
    241241    public function register_cron_tasks() {
    242242        if ( ! wp_next_scheduled( 'plugin_directory_meta_sync' ) ) {
    243             wp_schedule_event( time() + 60, 'hourly', 'plugin_directory_meta_sync' );
     243            wp_schedule_event( time() + 60, 'half_hourly', 'plugin_directory_meta_sync' );
    244244        }
    245245        if ( ! wp_next_scheduled( 'plugin_directory_plugin_support_resolved' ) ) {
Note: See TracChangeset for help on using the changeset viewer.