Changeset 9713
- Timestamp:
- 04/10/2020 08:39:16 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-gp-routes/inc/routes/class-stats.php
r9711 r9713 19 19 public function cache_waiting_strings() { 20 20 global $wpdb; 21 22 // Run the query on a primary DB server to avoid timing out. 23 if ( method_exists( $qpdb, 'send_reads_to_masters' ) ) { 24 $wpdb->send_reads_to_masters(); 25 } 21 26 22 27 $cached_projects = [ … … 36 41 foreach ( $cached_projects as $project ) { 37 42 $rows = $wpdb->get_results( $wpdb->prepare( $sql, $project->id ) ); 43 if ( ! $rows ) { 44 continue; 45 } 38 46 39 47 $cached_data = [];
Note: See TracChangeset
for help on using the changeset viewer.