• Resolved Nitin Jain

    (@glamsham)


    Hello,

    My website ‘Site Health Status’ is showing

    1. Page caching is not detected and the server response time is slow [https://ibb.co/ZYYC7yc]
    2. Unable to detect the presence of page cache [https://ibb.co/MPj1x5v]

    I am already using litespeed cache. Kindly guide if I am missing some settings

    Thank You

    The page I need help with: [log in to see the link]

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Support qtwrk

    (@qtwrk)

    I am seeing cache header there , you still seeing the error ?

    Thread Starter Nitin Jain

    (@glamsham)

    Yes, I can still see ‘Page caching is not detected but the server response time is OK’ message

    Median server response time was 5 milliseconds. This is less than the 600 millisecond threshold.
    No client caching response headers were detected.
    A page caching plugin was not detected.

    same here Unable to detect the presence of page cache

    Plugin Support qtwrk

    (@qtwrk)

    please provide the report number , you can get it in toolbox -> report-> click “send to LiteSpeed”

    Thread Starter Nitin Jain

    (@glamsham)

    Report number:?OLZPBZAV

    Plugin Support qtwrk

    (@qtwrk)

    please create a file , let’s say test.php , with code below

    <?php
    require( './wp-load.php' );
    
    $http_response = wp_remote_get( home_url( '/' ), compact( 'sslverify', 'headers' ) );
    
    $response_headers = wp_remote_retrieve_headers($http_response);
    
    echo '<pre>';
    var_dump($response_headers);
    echo '</pre>';

    then access it as https://yourdomain.com/test.php

    then post the result.

    Thread Starter Nitin Jain

    (@glamsham)

    Warning: compact(): Undefined variable $sslverify in /home/glamsham/public_html/test.php on line 4 Warning: compact(): Undefined variable $headers in /home/glamsham/public_html/test.php on line 4array(0) { }

    Plugin Support qtwrk

    (@qtwrk)

    the warning should be ignorable , did it output anything else ?

    you can also change that line to $http_response = wp_remote_get( home_url( '/' ) );

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Page Caching’ is closed to new replies.