xpod
Forum Replies Created
-
Forum: Plugins
In reply to: [LiteSpeed Cache] LS Cache issue with multi currency using Booster PluginHi @qtwrk I have joined the Slack channel, my id is dng2403
Forum: Plugins
In reply to: [LiteSpeed Cache] Assign value to cookie from Cloudflare Geo IP@qtwrk can you please be specific as to how to enable it. Under my OLS admin interface, Log level was set to Debug and Debug level set to None.
Forum: Plugins
In reply to: [LiteSpeed Cache] Assign value to cookie from Cloudflare Geo IPRewriteEngine on RewriteRule .* - [E=Cache-Control:vary=other] #set default vary to other RewriteCond %{HTTP:CF-IPCountry} "VN" [NC,OR] RewriteCond %{HTTP_USER_AGENT} Googlebot [NC] RewriteRule .* - [E=Cache-Control:vary=vn] #if CF header for country shows VN , override it from other to vn RewriteCond %{HTTP:CF-IPCountry} "AU" [NC] RewriteRule .* - [E=Cache-Control:vary=au] #if header shows AU , override it from other to au RewriteCond %{HTTP:CF-IPCountry} "US|CA|SG|MY" [NC] RewriteRule .* - [E=Cache-Control:vary=int] #if header shows US CA SG MY , override it from other to int
@qtwrk I added US CA SG MY to the list of separate cache to make sure user from these country got displayed correctly. Can you please check if the code I wrote is correct as I am not familiar with the syntax of .htaccess file. Under this, I still randomly got wrong currency for US customers and not sure why
Forum: Plugins
In reply to: [LiteSpeed Cache] Assign value to cookie from Cloudflare Geo IPSpain should see USD
My rule is for Vietnamese, it shows Woo default currency VND
For Australian, it shows AUD and the rest of the world shows USDWhen I use geopeeker.com to check my website from different location, many times I got it displayed in VND instead of USD; AUD is always rendered correctly. Then I have to purge the cache so it got to displayed correctly again.
The easiest way to check is visit: chymeochy.com/sale/
- This reply was modified 4 years, 6 months ago by xpod.
Forum: Plugins
In reply to: [LiteSpeed Cache] Assign value to cookie from Cloudflare Geo IPFound this in the OLS server log and I think its the reason for wrong cache
[162.158.158.205:26624#chymeochy.com] [Module:Cache] vary request header "Origin" not defined!
Do you think there is a way to get the above case to render under “VN” value
Forum: Plugins
In reply to: [LiteSpeed Cache] Assign value to cookie from Cloudflare Geo IPI am not too sure actually, its my only logical explanation because the cache was rendered for the wrong group of country many times (displaying default store currency instead). My only possible thinking now is some visit without a Cloudflare header which should be Search engine bot or the crawler (which I have turned off but issue still persists)
Forum: Plugins
In reply to: [LiteSpeed Cache] Assign value to cookie from Cloudflare Geo IPRewriteRule .* - [E=Cache-Control:vary=other] #set default vary to other RewriteCond %{HTTP:CF-IPCountry} "VN" [NC] RewriteRule .* - [E=Cache-Control:vary=vn] #if CF header for country shows VN , override it from other to vn RewriteCond %{HTTP:CF-IPCountry} "AU" [NC] RewriteRule .* - [E=Cache-Control:vary=au]
On this rewrite rules with Vary, the issue I have is many times when a bot (google) visit my site, it would come without Cloudflare Geo Header, and therefore will automatically be assigned with “other” and then since my default currency is “VND”, all my international customer will then see the cached version with “VND”.
I am not familiar with the syntax of .htaccess so I can not figure out how to write the rule in the following logic:
1. Default vary value: VN –> so that bot/crawler will always return the VN cache version, not overwriting other country version
2. If cloudflare header is VN –> VN cache version
3. If cloudflare header is AU –> AU cache version
4. If no cloudflare header or cloudflare header is not VN & AU –> International versionForum: Plugins
In reply to: [LiteSpeed Cache] Assign value to cookie from Cloudflare Geo IPHi, cloudflare cache is only for the homepage only. All other pages are not html cached with Cloudflare
Forum: Plugins
In reply to: [LiteSpeed Cache] Assign value to cookie from Cloudflare Geo IPI only need 3 version of caches only for 3 currency. I’m not sure how I can read the CF header and assign to cookie using .htaccess
@xpod on cloudflare i have disabled caching . bypass my complete url because i have users that are logged in and of course they dont shall see cached content. When i am using litespeed cache (there is already set no caching for logged in users) like i do, is it correct that i have to disable cashing at cloudflare too or can i enable it anyway ? (Logged in users is a reason for my question and the geo ip rules) ?
Do you know that?
Hi, I use cloudflare full page cache for the front page only because Cloudflare free plan only cache 1 version of your site. My woo pages need dynamic pricing. For your site, you really need to determine the nature of logged-in and non-logged-in user to decide what kind of caching work best.
@qtwrk I still have issues with LSCache as randomly the price for international user (should be in USD) got mixed up with e.g. Vietnamese currency (VND is the default woocommerce currency) and have to purge all caches. Do you think I can assign a cookie value to the cloudflare IP header so I can get the crawler to simulate?
Yes, thats the only code needed.
However it seems the LScache reset everytime a referal from Google or FB Ads. I have inconsistent cache display (mine was only about the currency) so I had to exclude cache for woo product pages
Forum: Plugins
In reply to: [LiteSpeed Cache] Quic + cloudflareI think you misunderstood
Caching works fine without quic cloud, its a local server thing
For example mysite I use Cloudflare and Bunny CDN, I did enable Quic Cloud for image and CSS optimzation, but not CDN
Forum: Plugins
In reply to: [LiteSpeed Cache] Image optimization not working V3Thank you very much, after Destroying optimization data, I was able to get it work.
Forum: Plugins
In reply to: [LiteSpeed Cache] Image optimization not working V3Here is what I found after clciking twice
04/28/20 01:12:48.787 [162.158.179.154:59556 1 is9] ?? ------GET HTTP/1.1 (HTTPS) /wp-admin/admin.php 04/28/20 01:12:48.787 [162.158.179.154:59556 1 is9] Query String: page=litespeed-img_optm&LSCWP_CTRL=img_optm&LSCWP_NONCE=4374e2d290&litespeed_type=new_req 04/28/20 01:12:48.787 [162.158.179.154:59556 1 is9] HTTP_REFERER: https://chymeochy.com/wp-admin/admin.php?page=litespeed-img_optm 04/28/20 01:12:48.787 [162.158.179.154:59556 1 is9] User Agent: Mozilla/5.0 (Linux; Android 10; SM-G985F) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.116 Mobile Safari/537.36 EdgA/45.02.4.4931 04/28/20 01:12:48.787 [162.158.179.154:59556 1 is9] Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3 04/28/20 01:12:48.787 [162.158.179.154:59556 1 is9] Accept Encoding: gzip 04/28/20 01:12:48.787 [162.158.179.154:59556 1 is9] Cookie _lscache_vary: admin_bar:1;logged-in:1;role:99 04/28/20 01:12:48.787 [162.158.179.154:59556 1 is9] X-LSCACHE: true 04/28/20 01:12:48.787 [162.158.179.154:59556 1 is9] LSCACHE_VARY_COOKIE: wp-postpass_81ae48d2299bb16c9b9cb3329e068df7 04/28/20 01:12:48.787 [162.158.179.154:59556 1 is9] LSCACHE_VARY_VALUE: vn+webp 04/28/20 01:12:48.824 [162.158.179.154:59556 1 is9] [Ctrl] X Cache_control -> stale 04/28/20 01:12:48.824 [162.158.179.154:59556 1 is9] [Ctrl] X Cache_control -> no Cache ( logged in user ) => LiteSpeed\Debug2::debug()@354 => LiteSpeed\Control::set_nocache()@381 => LiteSpeed\Vary->__construct()@45 => LiteSpeed\Instance::get_instance()@22 04/28/20 01:12:48.850 [162.158.179.154:59556 1 is9] [Media] init 04/28/20 01:12:48.850 [162.158.179.154:59556 1 is9] [Placeholder] init 04/28/20 01:12:48.850 [162.158.179.154:59556 1 is9] [CDN] init 04/28/20 01:12:48.850 [162.158.179.154:59556 1 is9] [Router] CDN bypassed: is not ajax call 04/28/20 01:12:48.850 [162.158.179.154:59556 1 is9] [Router] CDN bypassed: ajax call from admin 04/28/20 01:12:48.850 [162.158.179.154:59556 1 is9] ? Task init 04/28/20 01:12:48.850 [162.158.179.154:59556 1 is9] [Router] LSCWP_CTRL: img_optm 04/28/20 01:12:48.850 [162.158.179.154:59556 1 is9] [Router] LSCWP_CTRL verified: 'img_optm' 04/28/20 01:12:48.850 [162.158.179.154:59556 1 is9] [ImgOptm] init 04/28/20 01:12:48.850 [162.158.179.154:59556 1 is9] [Router] parsed type: new_req => LiteSpeed\Debug2::debug()@354 => LiteSpeed\Router::verify_type()@425 => LiteSpeed\Img_Optm::handler()@1760 => LiteSpeed\Router::handler()@701 04/28/20 01:12:48.850 [162.158.179.154:59556 1 is9] [Img_Optm] allowance_max 200 wet_limit 1 04/28/20 01:12:48.850 [162.158.179.154:59556 1 is9] [Img_Optm] preparing images to push 04/28/20 01:12:48.851 [162.158.179.154:59556 1 is9] [Img_Optm] need gather due to no new raw image found 04/28/20 01:12:48.851 [162.158.179.154:59556 1 is9] [Data] Checking table img_optm 04/28/20 01:12:48.852 [162.158.179.154:59556 1 is9] [Data] Existed 04/28/20 01:12:48.852 [162.158.179.154:59556 1 is9] [Data] Checking table img_optming 04/28/20 01:12:48.852 [162.158.179.154:59556 1 is9] [Data] Existed 04/28/20 01:12:50.162 [162.158.179.154:59556 1 is9] [Img_Optm] Added raw images [total] 3662 04/28/20 01:12:50.168 [162.158.179.154:59556 1 is9] [Core] CHK html bypass: miss footer const
Forum: Plugins
In reply to: [LiteSpeed Cache] Image optimization not working V3Here is what I found after clicking twice. Hope this is what you ask
04/28/20 01:12:48.787 [162.158.179.154:59556 1 is9] ?? ——GET HTTP/1.1 (HTTPS) /wp-admin/admin.php
04/28/20 01:12:48.787 [162.158.179.154:59556 1 is9] Query String: page=litespeed-img_optm&LSCWP_CTRL=img_optm&LSCWP_NONCE=4374e2d290&litespeed_type=new_req
04/28/20 01:12:48.787 [162.158.179.154:59556 1 is9] HTTP_REFERER: https://chymeochy.com/wp-admin/admin.php?page=litespeed-img_optm
04/28/20 01:12:48.787 [162.158.179.154:59556 1 is9] User Agent: Mozilla/5.0 (Linux; Android 10; SM-G985F) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.116 Mobile Safari/537.36 EdgA/45.02.4.4931
04/28/20 01:12:48.787 [162.158.179.154:59556 1 is9] Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3
04/28/20 01:12:48.787 [162.158.179.154:59556 1 is9] Accept Encoding: gzip
04/28/20 01:12:48.787 [162.158.179.154:59556 1 is9] Cookie _lscache_vary: admin_bar:1;logged-in:1;role:99
04/28/20 01:12:48.787 [162.158.179.154:59556 1 is9] X-LSCACHE: true
04/28/20 01:12:48.787 [162.158.179.154:59556 1 is9] LSCACHE_VARY_COOKIE: wp-postpass_81ae48d2299bb16c9b9cb3329e068df7
04/28/20 01:12:48.787 [162.158.179.154:59556 1 is9] LSCACHE_VARY_VALUE: vn+webp
04/28/20 01:12:48.824 [162.158.179.154:59556 1 is9] [Ctrl] X Cache_control -> stale
04/28/20 01:12:48.824 [162.158.179.154:59556 1 is9] [Ctrl] X Cache_control -> no Cache ( logged in user ) => LiteSpeed\Debug2::debug()@354 => LiteSpeed\Control::set_nocache()@381 => LiteSpeed\Vary->__construct()@45 => LiteSpeed\Instance::get_instance()@22
04/28/20 01:12:48.850 [162.158.179.154:59556 1 is9] [Media] init
04/28/20 01:12:48.850 [162.158.179.154:59556 1 is9] [Placeholder] init
04/28/20 01:12:48.850 [162.158.179.154:59556 1 is9] [CDN] init
04/28/20 01:12:48.850 [162.158.179.154:59556 1 is9] [Router] CDN bypassed: is not ajax call
04/28/20 01:12:48.850 [162.158.179.154:59556 1 is9] [Router] CDN bypassed: ajax call from admin
04/28/20 01:12:48.850 [162.158.179.154:59556 1 is9] ? Task init
04/28/20 01:12:48.850 [162.158.179.154:59556 1 is9] [Router] LSCWP_CTRL: img_optm
04/28/20 01:12:48.850 [162.158.179.154:59556 1 is9] [Router] LSCWP_CTRL verified: ‘img_optm’
04/28/20 01:12:48.850 [162.158.179.154:59556 1 is9] [ImgOptm] init
04/28/20 01:12:48.850 [162.158.179.154:59556 1 is9] [Router] parsed type: new_req => LiteSpeed\Debug2::debug()@354 => LiteSpeed\Router::verify_type()@425 => LiteSpeed\Img_Optm::handler()@1760 => LiteSpeed\Router::handler()@701
04/28/20 01:12:48.850 [162.158.179.154:59556 1 is9] [Img_Optm] allowance_max 200 wet_limit 1
04/28/20 01:12:48.850 [162.158.179.154:59556 1 is9] [Img_Optm] preparing images to push
04/28/20 01:12:48.851 [162.158.179.154:59556 1 is9] [Img_Optm] need gather due to no new raw image found
04/28/20 01:12:48.851 [162.158.179.154:59556 1 is9] [Data] Checking table img_optm
04/28/20 01:12:48.852 [162.158.179.154:59556 1 is9] [Data] Existed
04/28/20 01:12:48.852 [162.158.179.154:59556 1 is9] [Data] Checking table img_optming
04/28/20 01:12:48.852 [162.158.179.154:59556 1 is9] [Data] Existed
04/28/20 01:12:50.162 [162.158.179.154:59556 1 is9] [Img_Optm] Added raw images [total] 3662
04/28/20 01:12:50.168 [162.158.179.154:59556 1 is9] [Core] CHK html bypass: miss footer const