• Resolved Adrian

    (@adriandw)


    I am running WordPress in a subdirectory and updated wp-config.php as recommended at

    https://docs.litespeedtech.com/lscache/lscwp/troubleshoot/#cache-always-misses

    But when I run a cache check at https://check.lscache.io it always reports “LSCache is supported” but? shows “x-litespeed-cache: miss”

    I have another domain on the same Hostinger account where WordPress is installed in the root directory. On that site, the cache check always reports “LSCache is supported” and “LiteSpeed cache is a hit”

    What to I need to do to avoid cache misses on the first site?

    I have sent some more details as report number:?QLWXTAIG time-stamped 02/04/2023 16:09:32 from the LiteSpeed Cache Toolbox panel on my website.

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

    (@qtwrk)

    defined("LITESPEED_CFG_HTACCESS") || define("LITESPEED_CFG_HTACCESS", "/home/u405027830/domains/yourdomain.uk/public_html/lhs/.htaccess");
    
    defined("LITESPEED_CFG_HTACCESS_BACKEND") || define("LITESPEED_CFG_HTACCESS_BACKEND", "/home/u405027830/domains/yourdomain.uk/public_html/lhs/web/.htaccess");

    please add to this to your wp-config.php

    replace yourdomain.uk to your actual domain on both lines

    then go to Cache setting and save again

    Thread Starter Adrian

    (@adriandw)

    Thank you.
    I thought I had already added those two lines into the wp-config.php file but there was one crucial mistake
    in my version I had included the web subdirectory in the path definition for the frontend and the backend.
    After I read your response and removed web from the front-end path definition in wp-config.php, LSCache Check is reporting hits for that site.
    Many thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘LSCache Check always reports cache miss’ is closed to new replies.