Changeset 9284 for sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/jobs/class-meta-sync.php
- Timestamp:
- 11/20/2019 06:59:20 AM (4 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
r9140 r9284 26 26 $this->sync_ratings(); 27 27 $this->update_tested_up_to(); 28 29 Manager::clear_memory_heavy_variables(); 28 30 } 29 31 … … 167 169 $tested_values = $wpdb->get_results( "SELECT post_id, post_name, meta_value FROM {$wpdb->postmeta} pm JOIN {$wpdb->posts} p ON pm.post_id = p.ID WHERE meta_key = 'tested' AND meta_value IN( {$tested_meta_value_esc_sql} )" ); 168 170 169 foreach ( $tested_values as $ row ) {171 foreach ( $tested_values as $i => $row ) { 170 172 update_post_meta( 171 173 $row->post_id, … … 176 178 // Update the API endpoints with the new data 177 179 API_Update_Updater::update_single_plugin( $row->post_name ); 180 181 if ( $i % 100 === 0 ) { 182 Manager::clear_memory_heavy_variables(); 183 } 178 184 } 179 185 }
Note: See TracChangeset
for help on using the changeset viewer.