You appear to be a bot. Output may be restricted
Description
Usage
Jetpack_Search_Performance_Logger::log_mysql_query( $found_posts, $query );
Parameters
- $found_posts
- ( mixed ) required –
- $query
- ( mixed ) required –
Returns
void
Source
File name: jetpack/_inc/lib/class.jetpack-search-performance-logger.php
Lines:
1 to 11 of 11
public function log_mysql_query( $found_posts, $query ) { if ( $this->current_query === $query ) { $duration = microtime( true ) - $this->query_started; if ( $duration < 60 ) { // eliminate outliers, likely tracking errors $this->record_query_time( $duration, false ); } $this->reset_query_state(); } return $found_posts; }