• Resolved Ced

    (@cedriccharles)


    Hello there!

    First of all, thank you for your great work ?? !

    I have a WordPress Multisite with 13 sites. Some subsites are slow, so I did check Lighthouse on these, and it says that CSS is not minified, for example. But if I go to the subsite lightspeed settings, it says that it should be overwritten by main site settings, which are set on “ON” for CSS minifying, for example: https://snipboard.io/Betsr1.jpg

    So I don’t understand why the settings are not correctly overwritten…

    Could you please help me?

    Report number: PGYNISNY
    Report date: 06/14/2024 14:00:39

    Kind regards,
    Cedric

    • This topic was modified 5 months, 2 weeks ago by Ced.

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

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

    (@qtwrk)

    huh? noel-marquet.net is the domain in question ?

    please try go to network plugin setting -> toolbox -> debug setting -> set debug to ON , debug level to advance, debug include URI, add test

    then go to log view, clear up any existing log

    then open the page as https://noel-marquet.net?test then go to log view again , and share the log via https://pastebin.ubuntu.com/

    Thread Starter Ced

    (@cedriccharles)

    Hello @qtwrk

    In fact, just discovered that, with DEBUG on and when I try to visit the home URL, I have this line “[Ctrl] ? forced no cache [reason] DONOTCACHEPAGE const”

    It seems that a plugin sets this constant… It might be the “Geolocation IP Detection” : https://www.ads-software.com/plugins/geoip-detect/

    If so, what can I do? I need to use IP detection to be able to redirect to another domain if there is an existing website for the geolocated user…

    Thank you,

    Cedric

    Plugin Support qtwrk

    (@qtwrk)

    add_filter( 'litespeed_const_DONOTCACHEPAGE', '__return_false' );

    you can add this to your theme’s functions to ignore that DONOTCACHEPAGE constant

    but this may break the geoip detection

    ideally for geo cache, you need enable geoip module , ref: https://docs.litespeedtech.com/lsws/cp/cpanel/geoip/

    if this is not possible, then you will need to have a CDN in front, like QUIC cloud CDN , or CloudFlare that passes in the country code in request header , so we can use this header to vary cache.

    Thread Starter Ced

    (@cedriccharles)

    Hi @qtwrk ?? !

    Thank you for your answer. I’ve enabled the GEOIP extension in my CPanel. But I was using the country code on page load to define if I need to display a popup to redirect the user to another URL or not. If the page is cached with LiteSpeed, how to do that?

    Plugin Support qtwrk

    (@qtwrk)

    you need to enable GeoIP from server leve,

    please check this page , you may need to ask your provider to assist on this part

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