• Resolved gerske

    (@gerske)


    I have a problem similar to this. Sometimes, after many days without any problems, the website breaks for not logged in users. The front page is messy and doesn’t work. After flushing the cache, the site works again without problems.

    As it is a webshop, we loose sales during the period that the problem starts until I notice the problem (for example a customer telling us he can’t access the site) and fix it.

    I really hope to solve this problem, so it won’t occur again. Thanks for the help! LS report MTSAHBOI.

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

    (@qtwrk)

    please add that directive as well , and check the page in dev tool if there is any error message or warning , hopefully that will give me some hint

    and in case you have cron trigger, please make sure you use wget/curl way, instead of command line way

    Thread Starter gerske

    (@gerske)

    With “please add that directive as well”, do you mean adding the .htacces mentioned in the other thread?

    Next time it will happen I will check dev tool for hints. That could take a week or more, as it only happens rarely. Making it harder to fix.

    Regarding cron trigger: We have cron via server. These are the current setting: https://i.imgur.com/D4r16Ry.png Can these settings be bettered? (BTW, I notice we use php 7.4.33 for this cron job, but for the website we use 8.1.13) Thanks!

    • This reply was modified 1 year, 3 months ago by gerske.
    Thread Starter gerske

    (@gerske)

    Where in the .htacces file should I put the following code? Like this?

    # BEGIN LSCACHE
    ## LITESPEED WP CACHE PLUGIN - Do not edit the contents of this block! ##
    <IfModule LiteSpeed>
    RewriteEngine on
    CacheLookup on
    RewriteRule .* - [E=Cache-Control:no-autoflush]
    RewriteRule \.litespeed_conf\.dat - [F,L]
    
    ## Code by @qtwrk
    SetEnvIf Request_URI "/$" change_header
    Header set Cache-Control "max-age=0, no-cache, no-store, must-revalidate" env=change_header
    • This reply was modified 1 year, 3 months ago by gerske.
    Plugin Support qtwrk

    (@qtwrk)

    please put it before/above the line #BEGIN LSCACHE

    Thread Starter gerske

    (@gerske)

    OK, thank you. I will add it and will check if this problem is fixed by that. It can be weeks before I will know.

    Plugin Support qtwrk

    (@qtwrk)

    thanks, I will wait for your update.

    Thread Starter gerske

    (@gerske)

    Unfortunately it happened again today (a week later), so the .htaccess code is not the solution. I have checked inspection of the page, and no errors showed. I switched of ESI and after the pages worked again. I don’t know if that is because of switching that of or that Litespeed purged because of that.

    The reason why I switched of ESI, is because I use that for 2 months now, and before that I never had this problem. So it might be correlated. Will have to wait for a week or so, to find out.

    I can now better remove the code from the .htaccess I think as it doesn’t work. Correct?

    Very strange problem! Everything works great but after a week or so the site breaks / doesn’t load / show almost empty page.

    Plugin Support qtwrk

    (@qtwrk)

    now that is weird if no error show up , not even bad request ? like 404 error on CSS files ?

    ESI should not be related , unless your CSS is added by ESI , there was an ESI issue that will be fixed in next release though, but it doesn’t hurt to try.

    it doesn’t hurt to keep it though, please feel free to remove it

    Thread Starter gerske

    (@gerske)

    The only message there was is “Page layout may be unexpected due to Quirks Mode” pointing to a MailerLite file. First I thought that that might be it, but after switching off ESI the site worked again, and this warning was still there. I have contacted MailerLite though, so they can prevent this. Their answer is: “Searching internally reveals we remove?<!DOCTYPE html>?when a form is embedded in users’ HTML because the user’s HTML would already have it and there’s no need to have 2 of those. So it’s just a ‘warning’ message really with no adverse effects.”.

    No other error or warning. ESI is (was) only used in a shortcode to show the (dynamic) shipping date.

    Plugin Support qtwrk

    (@qtwrk)

    please do me a full screenshot on dev tool -> network tab , or even better, export as HAR file to me when you see it happens

    Thread Starter gerske

    (@gerske)

    OK

    Plugin Support qtwrk

    (@qtwrk)

    thanks, when you have it , please send the screenshot or HAR file to email address: support at litespeedtech.com with reference link to this topic.

    Thread Starter gerske

    (@gerske)

    Since I switched off ESI, the problem didn’t come back. So it most probably is an ESI issue.

    Kind regards, Gerske

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Plugin breaks site randomly after several days’ is closed to new replies.