Wrong currency when cache enabled
-
Hi,
When I enable our caching plugin (wp-rocket) the currency doesn’t change correctly.If I enable “Geolocation (with caching support)” on woocommerce, everything works but as this option adds ?v=XXXx string, I don’t want to use it coz it affects our page speed and SEO.
The other option which is “load product prices in the background” doesn’t work. I tried to check the debug info and it’s as follow:
Default customer location: geolocation
MaxMind GeoIP database: checked
MaxMind license: checked
MM_COUNTRY_CODE: x
GEOIP_COUNTRY_CODE: x
HTTP_CF_IPCOUNTRY: US
HTTP_X_COUNTRY_CODE: x
HTTP_X_REAL_IP: 104.237.226.43the HTTP_CF_IPCOUNTRY coming from cloudflare correctly but I’m not sure if GEOIP_COUNTRY_CODE should show the same value or not?
I have also added $_SERVER[‘GEOIP_COUNTRY_CODE’] = ”; to wp-config as you mentioned on another post, but still the same.
- The topic ‘Wrong currency when cache enabled’ is closed to new replies.