Changeset 10230
- Timestamp:
- 09/02/2020 04:41:58 AM (5 years ago)
- Location:
- sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/jobs
- Files:
-
- 2 edited
-
class-manager.php (modified) (1 diff)
-
class-meta-sync.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/jobs/class-manager.php
r10209 r10230 241 241 public function register_cron_tasks() { 242 242 if ( ! wp_next_scheduled( 'plugin_directory_meta_sync' ) ) { 243 wp_schedule_event( time() + 60, 'h ourly', 'plugin_directory_meta_sync' );243 wp_schedule_event( time() + 60, 'half_hourly', 'plugin_directory_meta_sync' ); 244 244 } 245 245 if ( ! wp_next_scheduled( 'plugin_directory_plugin_support_resolved' ) ) { -
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/jobs/class-meta-sync.php
r9285 r10230 41 41 "SELECT p.id as post_id, downloads 42 42 FROM `{$wpdb->posts}` p 43 JOIN `{$download_count_table}` c onp.post_name = c.plugin_slug43 JOIN `{$download_count_table}` c ON p.post_name = c.plugin_slug 44 44 LEFT JOIN `{$wpdb->postmeta}` pm ON p.id = pm.post_id AND pm.meta_key = 'downloads' 45 45 46 46 WHERE 47 downloads != pm.meta_value OR 48 pm.meta_id IS NULL" 47 pm.meta_id IS NULL 48 OR 49 downloads - pm.meta_value > 10 50 " 49 51 ); 50 52
Note: See TracChangeset
for help on using the changeset viewer.