timer_start example

/** * Internal function to perform the mysql_query() call. * * @since 3.9.0 * * @see wpdb::query() * * @param string $query The query to run. */
    private function _do_query( $query ) {
        if ( defined( 'SAVEQUERIES' ) && SAVEQUERIES ) {
            $this->timer_start();
        }

        if ( ! empty( $this->dbh ) && $this->use_mysqli ) {
            $this->result = mysqli_query( $this->dbh, $query );
        } elseif ( ! empty( $this->dbh ) ) {
            $this->result = mysql_query( $query$this->dbh );
        }
        $this->num_queries++;

        if ( defined( 'SAVEQUERIES' ) && SAVEQUERIES ) {
            $this->log_query(
                
// WordPress calculates offsets from UTC. // phpcs:ignore WordPress.DateTime.RestrictedFunctions.timezone_change_date_default_timezone_set date_default_timezone_set( 'UTC' );

// Standardize $_SERVER variables across setups. wp_fix_server_vars();

// Check if the site is in maintenance mode. wp_maintenance();

// Start loading timer. timer_start();

// Check if WP_DEBUG mode is enabled. wp_debug_mode();

/** * Filters whether to enable loading of the advanced-cache.php drop-in. * * This filter runs before it can be used by plugins. It is designed for non-web * run-times. If false is returned, advanced-cache.php will never be loaded. * * @since 4.6.0 * * @param bool $enable_advanced_cache Whether to enable loading advanced-cache.php (if present). * Default true. */
Home | Imprint | This part of the site doesn't use cookies.