• Resolved Deon

    (@deon-b)


    Hi,
    my hosting notified me of a server change, and in this new server they’re using
    your plugin for caching (previously they were using cachewall).

    I have now installed the plugin on my website:
    https://7i.se/Gc

    1) How do I check it’s working?
    2) Do I need to somehow connect it thru cpanel?
    This is what I see in cpanel:
    https://pasteboard.co/DCyPAW98gaXY.png

    Thank you for this plugin.
    Best,
    Deon

Viewing 11 replies - 1 through 11 (of 11 total)
  • To check if plugin is working check HTTP headers of the main codument. Press F12 key to open developer console in browser. Select network tab and click on the first entry in the list of requests. This should be the request of main codument. Click it and you will see all headers in a new “window”. Look for “x-litespeed-cache” header. The value should be “hit”, if page is already cached. If it is “miss, reload the page and ceck again. In your case something prevents caching URLs, because x-litespeed-cache header is always “no-cache”, so check if plugin is enabled or settings in plugin prevents caching.

    Thread Starter Deon

    (@deon-b)

    Hi, thank you for your reply.
    I have enabled the plugin both on the server side and on my website. I flushed all cache both on site and server, and it still shows: no cache.

    I ran a debug log, but I don’t see any hint to what the problem could be?

    01/21/22 23:06:14.423 [IPHERE:62637 1 Mjn] ?? ------GET HTTP/1.1 (HTTPS) /page-name-here/
    01/21/22 23:06:14.423 [IPHERE:62637 1 Mjn] Query String:
    01/21/22 23:06:14.423 [IPHERE:62637 1 Mjn] HTTP_REFERER: https://MYWEBSITE.COM/
    01/21/22 23:06:14.423 [IPHERE:62637 1 Mjn] Cookie _lscache_vary: 95c1174ce4b24806105462c88880b22d
    01/21/22 23:06:14.478 [IPHERE:62637 1 Mjn] [Ctrl] X Cache_control -> private ( logged in user )
    01/21/22 23:06:14.478 [IPHERE:62637 1 Mjn] [Router] get_role: administrator
    01/21/22 23:06:14.502 [IPHERE:62637 1 Mjn] ?? [Tag] Add --- HTTP.200
    01/21/22 23:06:14.502 [IPHERE:62637 1 Mjn] [Ctrl] X Cache_control init on
    01/21/22 23:06:14.550 [IPHERE:62637 1 Mjn] [Vary] No pending comment
    01/21/22 23:06:14.562 [IPHERE:62637 1 Mjn] [Ctrl] X Cache_control -> no Cache ( wp polls )
    01/21/22 23:06:14.566 [IPHERE:62637 1 Mjn] [Core] Footer hook called
    01/21/22 23:06:14.566 [IPHERE:62637 1 Mjn] [Core] Footer check passed
    01/21/22 23:06:14.567 [IPHERE:62637 1 Mjn] [Ctrl] not cacheable before ctrl finalize
    01/21/22 23:06:14.568 [IPHERE:62637 1 Mjn] [Vary] set_cookie ---> admin_bar:1;logged-in:1;role:99
    01/21/22 23:06:14.569 [IPHERE:62637 1 Mjn] ?? X-LiteSpeed-Cache-Control: no-cache
    01/21/22 23:06:14.569 [IPHERE:62637 1 Mjn] [Core] Footer check passed
    01/21/22 23:06:14.570 [IPHERE:62637 1 Mjn] [Media] bypass: Not cacheable
    01/21/22 23:06:14.570 [IPHERE:62637 1 Mjn] End response
    Plugin Support qtwrk

    (@qtwrk)

    X Cache_control -> no Cache ( wp polls )

    that “wp poll” plugin is calling page no-cache in order to showing a live poll result

    Thread Starter Deon

    (@deon-b)

    Thank you for the reply!
    I deactivated the wp-polls plugin and it gives me a “hit” now. But I would like to keep the plugin and the polls also.

    Is there any exception or rules I can put in the LScache settings to make it work with WPpolls, whether by caching the results of the poll, or by caching all on the page except for the polls?

    When the polls plugin is activated does it prevent it from caching the whole page, or is it caching everything else anyway?

    Thanks!

    • This reply was modified 3 years, 2 months ago by Deon.
    Plugin Support qtwrk

    (@qtwrk)

    I don’t have good solution to this case

    maybe you can try different poll plugin

    one thing you can try , that will cache the vote result is edit file https://github.com/litespeedtech/lscache_wp/blob/master/thirdparty/entry.inc.php

    remove the line 'Wp_Polls', , then it will make the page cache

    Thread Starter Deon

    (@deon-b)

    Hi,
    Thank you for your help!
    I removed the line WP_Polls and now the pages are caching. Basically what did we do? Does it mean that now the whole site is caching except for the polls?

    Another quick question, why in Inspect > Network it shows: cache control: no-cache, and then below it says litespeed cache, hit?

    Is it 2 different types of caches? ????

    cache-control: no-cache, must-revalidate, max-age=0
    .
    .
    .
    server: LiteSpeed
    x-litespeed-cache: hit,private
    x-powered-by: PHP/7.4.27
    • This reply was modified 3 years, 1 month ago by Deon.
    Plugin Support qtwrk

    (@qtwrk)

    yes, first one is the browser cache , and that is the default wordpress value and you should keep it that way

    the second is LSCache status.

    Thread Starter Deon

    (@deon-b)

    Thanks, so everything is caching now, except for the polls.

    (I didn’t know if your “yes” was to my first or second question).

    Thread Starter Deon

    (@deon-b)

    Please let me know, I just want a confirmation from you to be 100% clear ??

    Plugin Support qtwrk

    (@qtwrk)

    I removed the line WP_Polls and now the pages are caching. Basically what did we do? Does it mean that now the whole site is caching except for the polls?

    everything is caching now, except for the polls.

    yes

    why in Inspect > Network it shows: cache control: no-cache, and then below it says litespeed cache, hit?

    first one is the browser cache , and that is the default wordpress value and you should keep it that way

    the second is LSCache status.

    this should be more clear with quotes : )

    Thread Starter Deon

    (@deon-b)

    Thank you very much!

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘[NSFW] How do I know it’s working?’ is closed to new replies.