• Resolved dev

    (@devksec)


    Hello,

    Our implementation of WOOCs is very slow when switching between currencies.

    Due to using W3total cache we’ve had to enable the caching option, php sessions and not GET requests to have the plugin work properly. However, the AJAX requests are slow to change the currencies on product pages.

    Is there a way we can cache the converted currencies values (We only update these weekly) or speed up switching currencies ?

    We’ve noticed also that if we enable the pre-loader icon, this causes the base currency to load and further increases the load time.

    Many Thanks!

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Support mediawebster

    (@mediawebster)

    Hello

    Ajax request does not affect page load speed. Ajax request does not affect page load speed

    Is there a way we can cache the converted currencies values – currency conversion is just a mathematical operation and it is super fast. Time transmits to request and response from your server

    We’ve noticed also that if we enable the pre-loader icon, this causes the base currency to load and further increases the load time. – This is not possible because it is just CSS.

    Thread Starter dev

    (@devksec)

    Hello,

    The page load speed is not the issue, it is the time it takes to switch currencies after the page has loaded. This is very slow and takes several seconds to switch currencies.

    In regards to our site, when the pre-loader is enabled it pre-loads the base currency which is not needed.

    Kind Regards

    • This reply was modified 3 years, 7 months ago by dev.
    Plugin Support mediawebster

    (@mediawebster)

    Hello

    Please drop me exact link to the issue

    In regards to our site, when the pre-loader is enabled it pre-loads the base currency which is not needed. – This option is just CSS, it cannot load anything.That is, just an animation of the image

    Thread Starter dev

    (@devksec)

    Hello,

    Do you have an email address I can send it to ?

    Correct however it applies this to the base currency and this increases the time until the prices are displayed. It should only be used when switching currencies not on initial load.

    Plugin Support mediawebster

    (@mediawebster)

    Hello

    It should only be used when switching currencies not on initial load. – No! This is the time while the plugin checks the current currency when the page is cached. If you don’t like it, just turn off this function, nothing will change for you.

    You can write here – https://pluginus.net/support/forum/woocs-woocommerce-currency-switcher-multi-currency-and-multi-pay-for-woocommerce/

    Thread Starter dev

    (@devksec)

    It would be nice to have this feature however only when switching currencies not on the initial load.

    our prices are there already so there is no need to pre-load the base currency in. It would just help make the slow switching of currencies appear better.

    We would rather not put our site URLS on a public forum. Is there a way to send these privately?

    Plugin Support mediawebster

    (@mediawebster)

    Hello

    It would be nice to have this feature however only when switching currencies not on the initial load. – It doesn’t make sense. Whatever you do with the page, it can always be cached.

    our prices are there already so there is no need to pre-load the base currency in. It would just help make the slow switching of currencies appear better. – the page can be saved in the cache with any currency. It doesn’t matter if it’s the base currency or not

    You can write here – https://pluginus.net/support/forum/woocs-woocommerce-currency-switcher-multi-currency-and-multi-pay-for-woocommerce/

    Thread Starter dev

    (@devksec)

    So this took a while to resolve however we managed to get it fixed with the following. Seems to be a caching/session issue.

    Cloudflare
    1. Do not cache query strings

    WOOCS
    1. Use PHP Sessions (Transient & memcache seem to change the currency for everyone per visit)
    2. Do not disallow the use of the query strings in the GET requests – E.G Ensure they are present in GET requests (This causes issues with W3Total cache as it excludes those queries by default)

    Thread Starter dev

    (@devksec)

    The issue now is that if anyone visits the page, before W3TC has cached it, it now caches it in the wrong currency.

    Each visitor then gets the wrong currency loaded before the adjax kicks in and reverts back to the base currency.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Slow switching speed’ is closed to new replies.