• Hello,

    I have this cookie cr_wpml_is_filtered=no; path=/; SameSite=Lax; secure and it is preventing cache

    This cookie is not relevant and i contacted the plugin author with no help.
    What can i do to force cache it or separate it from other cache or if you have any suggestion to solve this?
    It’s really annoying and unfortunately I’m relaying on the plugin causing this

    thank you

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

    (@qtwrk)

    please provide the report number

    you can get it in toolbox -> report -> click “send to LiteSpeed”

    Thread Starter Ahmed Abu Shamia

    (@colyz93)

    Hello,

    Report number:?RYIHKVKO

    Thread Starter Ahmed Abu Shamia

    (@colyz93)

    Hi, just to be clear I want to describe the problem, my Hostinger Resources Usage shows massive peaks in CPU usage

    2023-05-28 10:49 CPU 59% Memory 81MB lsphp:264/domains/mydomain.com/public_html/index.php

    2023-05-28 11:01 CPU 57% Memory 72MB lsphp:ns/mydomain.com/public_html/wp-admin/admin.php

    2023-05-28 10:49 CPU 45% Memory 143MB lsphp:4/domains/mydomain.com/public_html/wp-cron.php

    The support told me that caching is the issue, also I have problems with the crawler showing 117 Hit 997 Miss, I have the same problem with another website with the same plugins and configurations but it has higher resources 160 Hit 1839 Miss

    I used WP Rocket before and switched to LiteSpeed Cache to fix this problem

    I don’t know why they are not being cached but i fount this cookie i mentioned before with “secure”, i disabled the plugin and tested but the problem is not solved, even with Woocommerce and WPML plugins only active.

    Your help will be appreciated, thank you

    Plugin Support qtwrk

    (@qtwrk)

    I don’t see how that cookie could prevent cache

    please check your http response header , what is the value on x-litespeed-cache and x-litespeed-cache-control ?

    and where did that cookie come from ? as I mean , how it was set from your website ?

    Thread Starter Ahmed Abu Shamia

    (@colyz93)

    X-Litespeed-Cache: miss

    X-Litespeed-Cache-Control: public,max-age=604800

    The cookie source is Customer Reviews for WooCommerce by CusRev

    Plugin Support qtwrk

    (@qtwrk)

    do you have that cookie when you check and see above header ?

    Thread Starter Ahmed Abu Shamia

    (@colyz93)

    Yes,

    Content-Encoding: br
    Content-Security-Policy: upgrade-insecure-requests
    Content-Type: text/html; charset=UTF-8
    Date: Tue, 30 May 2023 01:15:24 GMT
    Etag: "18056-1685409324;br"
    Link: <https://mywebsite.com/wp-json/>; rel="https://api.w.org/"
    Link: <https://mywebsite.com/wp-json/wp/v2/product/25756>; rel="alternate"; type="application/json"
    Platform: hostinger
    Server: LiteSpeed
    Set-Cookie: cr_wpml_is_filtered=no; path=/; SameSite=Lax; secure
    Vary: Accept-Encoding
    X-Dns-Prefetch-Control: on
    X-Litespeed-Cache: miss
    X-Litespeed-Cache-Control: public,max-age=604800
    X-Litespeed-Tag: 70a_HTTP.200,70a_product,70a_URL.7229ecb5eb4d9a1884dae15e74d8180a,70a_Po.25756,70a_
    X-Powered-By: PHP/8.0.28
    Plugin Support qtwrk

    (@qtwrk)

    refresh again , does it give you cache hit ?

    Thread Starter Ahmed Abu Shamia

    (@colyz93)

    Yes, but when I visit later I get Miss, I need it to be hit for the first visit always, I also enabled guest mode and the same thing happens.

    https://www.yoppia.com/
    https://oddbitsegypt.com/

    Plugin Support qtwrk

    (@qtwrk)

    then your issue is more like early or frequently purge, not “something prevent cache”

    please try this guide , to enable the debug log

    Thread Starter Ahmed Abu Shamia

    (@colyz93)

    Hello, right now I found the reason for the crawling problem, it was a conflict between Asset Cleanup and LiteSpeed, I tried an alternative plugin Freesoul Deactivate Plugins but it also makes it stuck, do you have an alternative that can work or a way to make them work together? do I even need them or does LiteSpeed already remove unused JS and CSS?
    As for the cookie, I will observe the website

    Plugin Support qtwrk

    (@qtwrk)

    I don’t see how would other plugin conflict with crawler , does it work if you disable Asset clean up ?

    Thread Starter Ahmed Abu Shamia

    (@colyz93)

    Yes, it works only when i remove all unload rules for plugins and scripts

    if i keep them enabled error log shows that the crawler can’t find footer

    Plugin Support qtwrk

    (@qtwrk)

    what do you mean by can't find footer ?

    and please enable debug log , you will see /wp-content/crawler.log that will log what HTTP response header the crawler received

    Thread Starter Ahmed Abu Shamia

    (@colyz93)

    06/04/23 08:08:06.648 [154.178.111.36:53017 1 wdu] [Core] CHK html bypass: miss footer const

Viewing 15 replies - 1 through 15 (of 18 total)
  • The topic ‘Cookie prevents cache Hit’ is closed to new replies.