Caching issue
The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday. If you have problems with registration ask help on contact us page pleaseIf you not got email within 24~36 business hours, firstly check your spam box, and if no any email from the support there - back to the forum and read answer here. DO NOT ANSWER ON EMAILS [noreply@pluginus.net] FROM THE FORUM!! Emails are just for your info, all answers should be published only here.
The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday.
Quote from Natasha on October 4, 2023, 08:45Hi,
I've been using your plugin for several years and whenever there's been an issue with the plugin, your support has always been great. I recently changed caching plugin to WP Rocket and I've been having some compatibility issues with geolocation.
I followed the instruction here:
https://pluginus.net/support/topic/fox-doesn-t-work-while-wp-rocket-is-active/
https://currency-switcher.com/using-geolocation-causes-problems-doesnt-seem-to-work-for-me
The suggestion above didn't fix the issue, and I had a developper look into it. He turned off the preloading in WP Rocket and it seemed to fix the issue.
But today I noticed that when I update a customers order in wordpress, the currency gets cached and geolocation doesn't work (even after clearing the plugin, server and browser caches). I also noticed that if an order is placed, that currency also gets cached and geolocation doesn't work until I manually clear the server and plugin cache.
Here is an example:
A customer places an order in USD. After the order was placed, I tested the site on Test Locally https://testlocal.ly/ from 3 locations (US, Canada and UK), all the screen shots from 3 locations show the default USD currency, not the currency set for that location (see US flag currency icon in the website header at top right on every screenshot ---> https://ibb.co/LN8kyFS
I then go into wordpress dashboard and clear WP Rocket cache, signout and retest using same locations, and the currency changes to the correct currency for each location. See screenshot ---> https://ibb.co/zRH9Msj
I also tested the site on GT Metrix which scans the site from Canada, and the same thing happened, after the order was placed the screenshot shows the USD currency on the site (not CAD) and once I manually cleared the cache, and tested it again, it showed CAD.
Can you help me fix this?
Thank you!
Hi,
I've been using your plugin for several years and whenever there's been an issue with the plugin, your support has always been great. I recently changed caching plugin to WP Rocket and I've been having some compatibility issues with geolocation.
I followed the instruction here:
https://pluginus.net/support/topic/fox-doesn-t-work-while-wp-rocket-is-active/
https://currency-switcher.com/using-geolocation-causes-problems-doesnt-seem-to-work-for-me
The suggestion above didn't fix the issue, and I had a developper look into it. He turned off the preloading in WP Rocket and it seemed to fix the issue.
But today I noticed that when I update a customers order in wordpress, the currency gets cached and geolocation doesn't work (even after clearing the plugin, server and browser caches). I also noticed that if an order is placed, that currency also gets cached and geolocation doesn't work until I manually clear the server and plugin cache.
Here is an example:
A customer places an order in USD. After the order was placed, I tested the site on Test Locally https://testlocal.ly/ from 3 locations (US, Canada and UK), all the screen shots from 3 locations show the default USD currency, not the currency set for that location (see US flag currency icon in the website header at top right on every screenshot ---> https://ibb.co/LN8kyFS
I then go into wordpress dashboard and clear WP Rocket cache, signout and retest using same locations, and the currency changes to the correct currency for each location. See screenshot ---> https://ibb.co/zRH9Msj
I also tested the site on GT Metrix which scans the site from Canada, and the same thing happened, after the order was placed the screenshot shows the USD currency on the site (not CAD) and once I manually cleared the cache, and tested it again, it showed CAD.
Can you help me fix this?
Thank you!
Quote from Pablo Borysenco on October 4, 2023, 10:41Hello
Please paste your license key here - https://share.pluginus.net/image/i20230222134241.png -> https://share.pluginus.net/image/i20230222134511.png
Create a test page with shortcodes - [woocs_geo_hello][woocs_show_current_currency] - and do a test on this page - And pay attention to how the current country is determined
Hello
Please paste your license key here - https://share.pluginus.net/image/i20230222134241.png -> https://share.pluginus.net/image/i20230222134511.png
Create a test page with shortcodes - [woocs_geo_hello][woocs_show_current_currency] - and do a test on this page - And pay attention to how the current country is determined
Quote from Natasha on October 4, 2023, 12:04Thank you for your reply.
I've pasted the licence key and created a test page with the shortcode: https://www.inspirebeautyshop.com/test-currency/ and the correct location and currency is showing (I'm in Indonesia and the currency is USD)
Then I went into the backend of the site and opened an order paying in CAD and resent the order confirmation. I then went to: https://www.inspirebeautyshop.com/test-currency/ again and it's now showing me the correct location (Indonesia) and incorrect currency (CAD) - which is the same currency of the order I just updated. Please see screenshot ---> https://ibb.co/RBKTYDw
I've tried clearing WP Rocket Cache and my browser cache, but the currency switcher continues to show me the incorrect currency for my location.
I am pretty sure that the currency is not only caching when I update orders, but also when a customer places an order.
Thank you for your reply.
I've pasted the licence key and created a test page with the shortcode: https://www.inspirebeautyshop.com/test-currency/ and the correct location and currency is showing (I'm in Indonesia and the currency is USD)
Then I went into the backend of the site and opened an order paying in CAD and resent the order confirmation. I then went to: https://www.inspirebeautyshop.com/test-currency/ again and it's now showing me the correct location (Indonesia) and incorrect currency (CAD) - which is the same currency of the order I just updated. Please see screenshot ---> https://ibb.co/RBKTYDw
I've tried clearing WP Rocket Cache and my browser cache, but the currency switcher continues to show me the incorrect currency for my location.
I am pretty sure that the currency is not only caching when I update orders, but also when a customer places an order.
Quote from Pablo Borysenco on October 5, 2023, 09:38Hello
GeoIP works only for the first visit, then the plugin switches to the user’s last currency. When you go to the admin panel to change an order, the plugin switches to the base currency (this is necessary for the correct display of data) But this only happens for your user
Hello
GeoIP works only for the first visit, then the plugin switches to the user’s last currency. When you go to the admin panel to change an order, the plugin switches to the base currency (this is necessary for the correct display of data) But this only happens for your user
Quote from Natasha on October 5, 2023, 10:32Thank you for your reply.
I am seeing one other issue since installing the WP Rocket plugin. When I land on the website I will see a different currency for 3 seconds before my location currency loads. When I click on a product, I will again see a different currency for 3 second before my location currency shows. This sometimes happens on every product I click on in one session, or it happens on the first 1-3 product pages and eventually just shows my location currency. Sometimes in one session I can see GBP that turns to USD, next page shows me AUD that turns to USD after a few seconds, etc. It keep changing.
I don't want my customers seeing different currencies and prices on every product they click on, is there a way to fix this? The pages are loading quickly but there seems to be a delay for the currency switcher to geolocate and load the correct currency. I didn't have this issue with Siteground plugin I had installed before, but when I was using that plugin the pages were loading much slower.
Thank you for your reply.
I am seeing one other issue since installing the WP Rocket plugin. When I land on the website I will see a different currency for 3 seconds before my location currency loads. When I click on a product, I will again see a different currency for 3 second before my location currency shows. This sometimes happens on every product I click on in one session, or it happens on the first 1-3 product pages and eventually just shows my location currency. Sometimes in one session I can see GBP that turns to USD, next page shows me AUD that turns to USD after a few seconds, etc. It keep changing.
I don't want my customers seeing different currencies and prices on every product they click on, is there a way to fix this? The pages are loading quickly but there seems to be a delay for the currency switcher to geolocate and load the correct currency. I didn't have this issue with Siteground plugin I had installed before, but when I was using that plugin the pages were loading much slower.
Quote from Pablo Borysenco on October 5, 2023, 12:52Pages are loaded cached - my plugin checks the currency (after the page has loaded) and if the page does not have the correct currency, it redraws the prices
to hide this process - https://share.pluginus.net/image/i20231005135202.png
Pages are loaded cached - my plugin checks the currency (after the page has loaded) and if the page does not have the correct currency, it redraws the prices
to hide this process - https://share.pluginus.net/image/i20231005135202.png
Quote from Natasha on October 5, 2023, 13:02Yes, I have the price preloader setting turned on. But I still see the currency change after a few seconds.
Yes, I have the price preloader setting turned on. But I still see the currency change after a few seconds.
Quote from Pablo Borysenco on October 6, 2023, 10:05Hello
This looks like a CSS conflict with the current theme
Can you drop me wp-admin+ftp access - https://share.pluginus.net/image/i20230222134241.png ->https://share.pluginus.net/image/i20230222134615.png
Hello
This looks like a CSS conflict with the current theme
Can you drop me wp-admin+ftp access - https://share.pluginus.net/image/i20230222134241.png ->https://share.pluginus.net/image/i20230222134615.png
Quote from Natasha on October 6, 2023, 10:21Thank you! I did recently change the theme when I switched to WP Rocket. I added the wp & ftp access to the private data section.
Thank you! I did recently change the theme when I switched to WP Rocket. I added the wp & ftp access to the private data section.
Quote from Pablo Borysenco on October 6, 2023, 15:30Please delete your customization - https://c2n.me/4juSFxN.jpg
Please delete your customization - https://c2n.me/4juSFxN.jpg
Quote from Natasha on October 6, 2023, 15:59Thank you, I deleted the code but now when I go to the website, the first page I land on shows me the default currency (USD) which doesn't change to the geolocation currency. When I click on a product, the next page shows me the correct currency.
I've tested it from various locations and clearing my browser cache but always the first page only shows the default currency or sometimes it shows me the last currency and then changes to the default, but it doesn't show the correct currency for the location until I click on another page.
Thank you, I deleted the code but now when I go to the website, the first page I land on shows me the default currency (USD) which doesn't change to the geolocation currency. When I click on a product, the next page shows me the correct currency.
I've tested it from various locations and clearing my browser cache but always the first page only shows the default currency or sometimes it shows me the last currency and then changes to the default, but it doesn't show the correct currency for the location until I click on another page.
Quote from Natasha on October 6, 2023, 16:08I see it eventually loads after about 20 seconds. I've tested with 2 internet connection, this is really long to change the currency, it wasn't like this before. Could something else be conflicting now that I've deleted the other code? All the other pages seem ok, it just the first page you land on that the currency switching is delayed. Can this be fixed?
I see it eventually loads after about 20 seconds. I've tested with 2 internet connection, this is really long to change the currency, it wasn't like this before. Could something else be conflicting now that I've deleted the other code? All the other pages seem ok, it just the first page you land on that the currency switching is delayed. Can this be fixed?
Quote from Natasha on October 8, 2023, 11:34Hi, just following up - I had to move the currency converter with WP Rocket to a staging site and reactivate siteground plugin on the live site.
The currency switcher geolocation not working with WP Rocket - first page I land on takes at least 20 seconds for the correct currency to load, and then when I click around the site the currency changes. In one session I can see 2-3 different currencies. When I go to the page with the geolocation testing shortcode, it too will show me a completely different location and currency not matching my location or the one on the site.
Login credentials are all the same, I will put the url for the staging site in the private data section.
Thank you!
Hi, just following up - I had to move the currency converter with WP Rocket to a staging site and reactivate siteground plugin on the live site.
The currency switcher geolocation not working with WP Rocket - first page I land on takes at least 20 seconds for the correct currency to load, and then when I click around the site the currency changes. In one session I can see 2-3 different currencies. When I go to the page with the geolocation testing shortcode, it too will show me a completely different location and currency not matching my location or the one on the site.
Login credentials are all the same, I will put the url for the staging site in the private data section.
Thank you!
Quote from Natasha on October 9, 2023, 08:31Hi again,
I think I fixed it. I was also having extremely high CPU coming from admin-ajax. I found this---> https://pluginus.net/support/topic/high-admin-ajax-php-load-time-and-high-cpu-usage/ and turned off 'I'm using a cache' option. Geolocation and currency switching seems to be working fine, CPU has come down to normal, and there's no more long delay loading the price and currency. For now I will keep Siteground optimizier on to test, but I checked with using WP Rocket and it seems to be working as well. If there is a problem, I will let you know. Thank you!
Hi again,
I think I fixed it. I was also having extremely high CPU coming from admin-ajax. I found this---> https://pluginus.net/support/topic/high-admin-ajax-php-load-time-and-high-cpu-usage/ and turned off 'I'm using a cache' option. Geolocation and currency switching seems to be working fine, CPU has come down to normal, and there's no more long delay loading the price and currency. For now I will keep Siteground optimizier on to test, but I checked with using WP Rocket and it seems to be working as well. If there is a problem, I will let you know. Thank you!
Quote from Pablo Borysenco on October 9, 2023, 11:04Hello
Ok! Great
Write to me if the problem occurs again
Hello
Ok! Great
Write to me if the problem occurs again