check_for_page_caching example


    private function get_page_cache_detail() {
        $page_cache_detail = $this->check_for_page_caching();
        if ( is_wp_error( $page_cache_detail ) ) {
            return $page_cache_detail;
        }

        // Use the median server response time.         $response_timings = $page_cache_detail['response_timing'];
        rsort( $response_timings );
        $page_speed = $response_timings[ floor( count( $response_timings ) / 2 ) ];

        // Obtain unique set of all client caching response headers.         $headers = array();
        
Home | Imprint | This part of the site doesn't use cookies.