• Resolved CaptainMorgan

    (@davehealey)


    Hi,

    I’m using WooPayments with multi-currency support. When I select a currency on my site’s front end, and then go to another page, the currency resets to the site default. If I disable caching in the litepseed cache plugin the problem is resolved. I’ve tried excluding cookies and pages, php requests and all kinds of other combos but the only way I’ve managed to get it to work is by disabling caching entirely.

    Is anyone able to use Litespeed cache successfully with WooPayments + Multi-currency? Or is there a known solution? Thanks.

Viewing 9 replies - 16 through 24 (of 24 total)
  • Plugin Support qtwrk

    (@qtwrk)

    please provide the report number again , let me verify the htaccess content.

    Thread Starter CaptainMorgan

    (@davehealey)

    Sure: KYFXMRQW

    Plugin Support qtwrk

    (@qtwrk)

    you need to put my code at TOP of htaccess, not BOTTOM , then restart OLS again

    Thread Starter CaptainMorgan

    (@davehealey)

    Ah sorry, yes you did say that. I’ll try it now and report back.

    Thread Starter CaptainMorgan

    (@davehealey)

    Hey so far so good, this seems to have solved it!

    Thanks again, can you tell me why being at the top of the file makes the difference?

    Thread Starter CaptainMorgan

    (@davehealey)

    @qtwrk Ok it’s working, except when first changing currency it triggers a 503 error, removing the htaccess block resolves the problem. This can be easily triggered by loading the site in a private browser session.

    Plugin Support qtwrk

    (@qtwrk)

    in rewrite rule , when you have a L flag , the rule after it will not be processed , so the order/position of rule , matters

    for 503 error , you can check server stderr.log , it may give some hint.

    Thread Starter CaptainMorgan

    (@davehealey)

    The log doesn’t give much

    2024-07-19 22:49:51.211886 [NOTICE] [1975174] [server ip:HTTP2-1#librewave.com] oops! 503 Service Unavailable
    2024-07-19 22:49:51.211909 [INFO] [1975174] [server ip:HTTP2-1] Content len: 0, request line: ‘GET /?currency=USD HTTP/1.1’

    I’m using this line to test: curl -v –http2 “https://librewave.com/?currency=INR

    If I remove this from the htaccess then the 503 goes away: RewriteRule .* – [CO=multi_currency:%1:;] but so does the caching functionality.

    I’ve tried disabling the cache entirely, I also disabled my modsecurity rules just in case, those didn’t make a difference. I also tried setting the cookie via php in functions.php but no luck either.

    Plugin Support qtwrk

    (@qtwrk)

    if you have root access, then please create a ticket by mail to support at litespeedtech.com with reference link to this topic

    our server staffs will help you to troubleshoot the 503 issue.

Viewing 9 replies - 16 through 24 (of 24 total)
  • You must be logged in to reply to this topic.