Changeset 6639
- Timestamp:
- 02/15/2018 10:10:37 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/jobs/class-meta-sync.php
r6287 r6639 65 65 $current_review_time = $wpdb->get_var( 'SELECT MAX(`date`) FROM `ratings`' ); 66 66 67 if ( strtotime( $last_review_time ) >= strtotime( $current_review_time ) ) { 67 // sync whenever ratings change, or at least daily, to prevent stale data from persisting forever 68 if ( strtotime( $last_review_time ) >= strtotime( $current_review_time ) || strtotime( $last_review_time ) >= strtotime( '-1 day' ) ) { 68 69 return; 69 70 }
Note: See TracChangeset
for help on using the changeset viewer.