Support » Plugin: LiteSpeed Cache » CSS Combine Periodically Missing Content

  • Resolved miketemby

    (@miketemby)


    I have been using LSCache for about 3 years now on around 45 sites. Over this time I have noticed on many occasions that I will check on a site that has been running fine and see that the site is broken (displaying incorrectly: css issues).

    On investigation, I see that the combined css file is very small and only contains a fraction of the content it should contain.

    If I save the file and clear the cache out. I then get the site running again and if I compare the two combined files, the new one now contains all the css again.

    I have noted that the broken combined file is always broken cleanly at the end/beginning of where the next file should be placed in the combined file.

    What would cause this to happen and how can I prevent it/fix it?

    I am now just turning off combine on all my sites. With HTTP2 it’s probably not of any benefit anyway, but a solution would still be ideal as this is just avoiding the issue not resolving it.

    • This topic was modified 3 months, 3 weeks ago by miketemby.
Viewing 8 replies - 1 through 8 (of 8 total)
  • I also see broken pages. Everything is fine when I delete all cache and let it rebuild, a week later the problem is back. It’s like building the original cache is fine, but rebuilding it when needed causes an issue. Could it be related to the cache TTL which is set to a week and serving stale cache?

    Plugin Support qtwrk

    (@qtwrk)

    Did you happen to see anything in PHP error log ?

    Thread Starter miketemby

    (@miketemby)

    @qtwrk as it always occurs in production sites, I do not have debugging enabled so no errors available.

    I will attempt to produce the error manually in a dev environment by setting a very short ttl, however I am unsure of the exact conditions required to for the issue to present itself so this may not be achievable.

    One observation I have made, which may simply be a coincidence and due to the nature of most css files, but the “break” that I have observed has been where comments are on the css file. But this may simply be that most css files begin with a comments block… and the break occurs on a new css file…

    Plugin Support qtwrk

    (@qtwrk)

    may I know if you are on v4.2 or v3.6.4 ? if on 4.2 , did you enable UCSS ?

    Thread Starter miketemby

    (@miketemby)

    3.6.4 at the moment on the site it just occurred most recently on. It actually occurred twice this week on two different sites.
    What is UCSS?

    I will point out that this has occurred many times over the years, it’s just that I only now investigated it deeply enough to determine that the combined file was not being built properly. And I will also point out that at has occurred when the plugin was up to date at the time it occurred.
    I’m pointing this it in preparation for you telling me to update to the latest version and see if the issue persists….
    If you are unfamiliar with the issue existing, there is no reason the latest release would fix it.. fixes don’t tend to be developed for bugs that are not known.

    • This reply was modified 3 months, 3 weeks ago by miketemby.

    I have the same problem with combined css files with the latest version 4.2 and i had to go back to 3.6.4 version.

    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    please:

    download https://www.litespeedshare.net/2021/08/92db40-debug.zip

    this package contains 3 modified files with more debug log enabled, for v4.3 version only

    please replace them into /wp-content/plugins/litespeed-cache/src/ to override exsiting ones

    now edit wp-config.php

    find line

    define('WP_DEBUG', false);

    add ; in front it to comment it out , then add

    define('WP_DEBUG', true);
    define('WP_DEBUG_LOG', true);
    define('WP_DEBUG_DISPLAY',false);

    after it

    and then go to wp-admin -> LSCWP -> toolbox -> debug setting

    set debug log to admin IP only and add your IP in below box

    in “Debug URI Excludes” field ,add

    admin
    ajax

    into it , save and purge all

    and then wait for it happens again

    once it happens , please send /wp-content/debug.log and PHP error log (typically located /public_html/error_log on cPanel) to support at litespeedtech.com with reference link to this topic

    Best regards,

    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    there is a patch for combined files 404 error in v4.4-rc4 , please upgrade to it and see how it goes

    you can get it in toolbox -> beta test -> click “dev” and upgrade

    Best regards,

Viewing 8 replies - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.