• Resolved fletsch

    (@fletsch)


    Hi there

    I’m on a lightspeed server and using the woodmart theme with integrated filter options. Almost verything works like a charm and I really like the speed with litespeed cache on. I’m only having problems with the filter area. When I filter by attributes the URL changes for example from “/shop/” to “shop/?filter_dicke=5-mm”. Live filtering works but when I then reload the page or when I link directly to filtered products it breaks the site. I then have a almost white site with the text element in it. But it seems to load a wrong html document as well as not all CSS, JS and no images.

    Anyone has an idea what causes the problem? When I disable the cache it works fine. So is this a problem of litespeed or the theme?

    Page is still in work but you can test it here with password “materialist”: https://rb.gy/99x6p
    Just apply a filter and then reload the page or copy and paste the URL after applying filters.

    I tried to enable and disable almost everything in the litespeed settings. So thanks in advance for any hints!

    Best regards

    • This topic was modified 1 year, 6 months ago by fletsch.
Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support qtwrk

    (@qtwrk)

    please try woodmart -> product archive -> product archive -> ajax shop to off , then purge all , see how it goes.

    Thread Starter fletsch

    (@fletsch)

    Hi qtwrk

    Thanks a lot for your reply. I turned off ajax and it’s working now with having/using the button in the filter section. I can reload the pages and also link to filtered products. And thei are cached, it shows “x-litespeed-cache: hit”

    But is there a solution to use the filters without the button, meaning with ajax, and also have the site(s) cached?

    Is this now a problem coming from the theme and should they improve their theme or is it coming from litespeed itself?

    Best regards,
    Fletsch

    • This reply was modified 1 year, 6 months ago by fletsch.
    Thread Starter fletsch

    (@fletsch)

    I tried a few options and the only one working so far is to exlude the URL from caching with the following entry: ?filter_

    See it live: https://t.ly/CsSW (I don’t want to show up my real URL here)

    “Do Not Cache Query Strings” was not possible as it is not possible to enter just a part of a string, right? Like for example *filter_*

    But now with this solution aboslutely nothing is cached. No CSS and JS minified or combined. Is there a solution to have at least a basic speed optimization? I also tried WP Rocket and Hummingbird for caching and in the end they are both faster, what surprises me. Both seem to ignore the filters for caching the html file but Humminbird still compresses CSS and JS.

    See the number of requests (Anfragen) and the file size at the bottom left: https://1drv.ms/i/s!AttD-ea4FT8mgT_7EDAkNVriu7vC?e=qYWqtR

    Thanks in advance for any help. I’d like to have this sorted out before I start importing products.

    Best regards,
    Fletsch

    • This reply was modified 1 year, 6 months ago by fletsch.
    • This reply was modified 1 year, 6 months ago by fletsch.
    Thread Starter fletsch

    (@fletsch)

    EDIT: works not in Safari, only in Firefox.

    Ok what’s also working is to the Option “Force Cache URLs” with the entry: ?filter_

    Then all the pages with filtered products are cached and load pretty fast when saved in cache. I’m just wondering if this will generate a too huge cache with around 10 options containing around 5-10 attributes? Could lead to thousands if not millions of possible combinations if I’m right.

    So I really would be very curious to hear your opinion on the best solution.

    Best regards,
    Fletsch

    • This reply was modified 1 year, 6 months ago by fletsch.
    Plugin Support qtwrk

    (@qtwrk)

    it’s the way how woodmart work

    when you have ajax option enable , that “click” only gives or generates the content that fit into the existing page , as the request from ajax , only gives the partial content that relies the main existing page to re-utilize the JS/CSS of main page

    that’s the cause of the issue

    you can try Do Not Cache URI with string filter that should disable cache for all of these filter URIs , and yes , there could be millions combination that may take a lot of disk spaces

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Page with filters not showing correctly’ is closed to new replies.