• Resolved vermaakpetrus

    (@vermaakpetrus)


    We have a currency converter that switches the price and currency according to the user’s country.

    Here are some courses that we have on our home page.
    https://prnt.sc/bz5ga_wsaDyC

    With super cloudflare enabled, the currency gets stuck and does not switch, even though we told it not to cache courses or the home page:
    https://prnt.sc/i4FPNfm5sVAF

    Any ideas on how to exclude or fix this?

    FYI the problem is intermittent, sometimes need to refresh many times. But if the plugin is disabled the problem stops 100%.
    South African Countries is supposed to show Rand
    All Other Countries is supposed to show $

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Contributor iSaumya

    (@isaumya)

    Hi,
    in terms of not caching the home page as I can see the plugin is respecting your choice and not caching the home page content:

    View post on imgur.com

    View post on imgur.com

    But it seems you have some other rpage caching system in place according to your response header: https://i.imgur.com/UdsJtZg.jpeg

    So, it might be possible it is either a conflict between multiple caching system or the other system are caching something. As this plugin is setting the cache-control header properly as per your request – not to cache the page.

    Coming to the dynamic pricing – I don’t know how you have implemented it, but if you have used some PHP based system where at the PHP level you are checking the user country and then changing the currency accordingly — then you won’t be able to use any page caching system with the site. As to render the dynaming pricing PHP always needs to be executed which means the request needs to be served by the origin server and not a cache or CDN server.

    Alternatively, if you would have used JavaScript to asynchronously check the user location and change the pricing – then it will work perfectly with page caching.

    Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    @vermaakpetrus Please do not post the same thing twice to create multiple thread with duplicate content. I have archived your duplicate topic.

    Thread Starter vermaakpetrus

    (@vermaakpetrus)

    sorry, power went off on my side. Did not know it posted twice!

    Thread Starter vermaakpetrus

    (@vermaakpetrus)

    @isaumya Awesome reply!! Thanks we’re on it! Sneaky host cache that was not supposed to be there…

    Thread Starter vermaakpetrus

    (@vermaakpetrus)

    @isaumya I know this may sound like an obscure question but is there a way to turn off my hosting cache and allow your plugin cache in htaccess? Seems that there is a level if caching that they apply even though I turned everything off in their control panel.

    Plugin Contributor iSaumya

    (@isaumya)

    Seems that there is a level if caching that they apply even though I turned everything off in their control panel.

    – Unfortunately, it can only be turned off by the hosting provider.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Currency Conversion Price Being Cached’ is closed to new replies.