芝麻web文件管理V1.00
编辑当前文件:/home/paymbalq/www/wp-content/plugins/w3-total-cache/UsageStatistics_Source_Wpdb.php
Util_UsageStatistics::integer( $wpdb_calls_total ), 'calls_per_second' => Util_UsageStatistics::value_per_period_seconds( $wpdb_calls_total, $summary ), ); return $summary; } /** * Tracks usage statistics for the current request. * * This method adds the total number of WPDB queries executed during the current request * to the storage object for reporting purposes. It is triggered at the end of a request * to ensure accurate tracking. * * @param object $storage The storage object where statistics are recorded. * * @return void */ public function w3tc_usage_statistics_of_request( $storage ) { $storage->counter_add( 'wpdb_calls_total', $this->query_total ); } /** * Intercepts a database query and tracks the number of queries. * * This method is called every time a WPDB query is executed. It increments the total * query count (`$query_total`) for the current request and returns the query unchanged. * This allows for tracking the number of WPDB queries executed. * * @param string $q The SQL query being executed. * * @return string The original SQL query. */ public function query( $q ) { ++$this->query_total; return $q; } }