• Resolved rairt

    (@rairt)


    Hello!

    I’m experiencing issues with Litespeed Cache. After flushing the cache a couple of times in the same day a WordPress warning saying “Page caching not detected and server response is slow” appeared. Under this problem it says that a caching plugin and caching headers weren’t found.

    My server is compatible with Litespeed Cache, and I can’t find useful information in the debug_log.

    The things I did so far is resetting the settings, deactivating, reactivating, uninstalling, reinstalling, and repairing the database. However, the plugin still not working, and no matter the browser I use I get the following:

    Cache-Control:
    
    no-store, no-cache
    
    Content-Encoding:
    
    br
    
    Content-Type:
    
    text/html; charset=UTF-8
    
    Date:
    
    Mon, 12 Jun 2023 16:55:14 GMT
    
    ...
    
    Server:
    
    LiteSpeed
    
    Vary:
    
    Accept-Encoding
    
    X-Cache-Enabled:
    
    False
    
    X-Litespeed-Cache-Control:
    
    no-cache
    
    X-Litespeed-Tag:
    
    7a5_HTTP.200
    
    X-Turbo-Charged-By:
    
    LiteSpeed

    Report number: TKUZVTTB

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

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

    (@qtwrk)

    most likely something other plugin tells it no-to-cache

    please try add this to your theme’s functions.php

    add_filter( 'litespeed_const_DONOTCACHEPAGE', '__return_false' );
    Thread Starter rairt

    (@rairt)

    Thanks for your reply @qtwrk .

    I did it, but I still having the same problem.

    I guess the only way would be to deactivate plugin by plugin until I find the one causing the issue.

    Is there any type of pluging I should look for first? I don’t have any other optimization plugin, so no idea where to start.

    Plugin Support qtwrk

    (@qtwrk)

    please follow this guide to grab the log , log will tell what is going on

    Thread Starter rairt

    (@rairt)

    After some testing, I found out that Divi Builder plugin is causing the issue. However, I deactivated and reactivated the plugin and now seems to be working.

    In the log, I only find yesterday’s activity and there are no errors just normal activity (activated debug, deactivated the plugin, no cache for admin user, etc). Also, it’s too long to copy it here.

    I can’t make any sense of why Divi Builder would cause this issue and worst of all why the issue disappears by deactivating and reactivating it, but at least it is working now. If you have any additional information on this would be helpful because I sincerely thought that Litespeed and Divi Builder / Theme were compatible.

    Thanks for your help @qtwrk.

    • This reply was modified 1 year, 9 months ago by rairt.
    • This reply was modified 1 year, 9 months ago by rairt.
    Plugin Support qtwrk

    (@qtwrk)

    you can post log here https://paste.ubuntu.com/ then share link

    Thread Starter rairt

    (@rairt)

    Plugin Support qtwrk

    (@qtwrk)

    the log is incorrect

    please try this ,

    add test to debug include URI , and clean up the current debug log

    then access your page with ?test at end of it like , like https://seosemas.com/?test or any other page you are not getting cached.

    then share the link on this request.

    Thread Starter rairt

    (@rairt)

    Sorry for the delay. I hope this time I did it right. The issue disappeared for some time after I deactivated and reactivated Divi Builder, but today I confirmed it reappeared.

    Here’s the new link:

    https://paste.ubuntu.com/p/3qw8x6crsy/

    Plugin Support qtwrk

    (@qtwrk)

    [Ctrl] X Cache_control -> no Cache ( Generando CSS ) => LiteSpeed\Control::set_nocache(( Generando CSS 

    yes, it is Divi that requested to be no-cache , in order for it to generate the CSS, once the CSS is generated , the page should start become cacheable and be cached.

    Thread Starter rairt

    (@rairt)

    I plan to use Divi only on specific pages. Is there a way to avoid this conflict/behavior on the pages than don’t use Divi Builder?

    I already tried stopping Divi builder resources from loading on the other pages, but still messed up the caching.

    If you have any advice on that would be really appreciated. If not thanks for you everything and I guess I’ll need to talk to Divi support to find a solution.

    Plugin Support qtwrk

    (@qtwrk)

    you can try use Cache -> Cache -> Force Cache option , but I strongly advice against this , Divi made it no-cache for a reason , and by doing this , you will probably disturb its CSS generation process and result in broken page

    Thread Starter rairt

    (@rairt)

    @qtwrk Thanks. I will just deactivate the setting “Generate Static CSS” from Divi Builder, it solves the issue for now.

    I don’t need further assistance. Thank you for your support!

    Dear;
    I active LSCache on 4 website by the similar configuration. Two websites caches pages correctly but the other two, dont cache pages or cache just for a few minutes (page cache sets on 1 week).
    report number for one of websites that have problem: NXHDKZAW

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Litespeed Cache not caching any page’ is closed to new replies.