• Resolved sergiom87

    (@sergiom87)


    Hi Guys,

    First of all, this is a great plugin!

    I’ve recently changed to Lite speed, however, I have to use Geolocation Pricing based on user IP, I always used BOOSTER to do this but with caching this is impossible to do.

    WP Rocket has a feature that enable this to work… Is there any work around that allows pages to be cached but pricing not?

    Thanks

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

Viewing 6 replies - 16 through 21 (of 21 total)
  • Great, please feel free to let us know if still have any questions.

    Thread Starter sergiom87

    (@sergiom87)

    I don’t think you understood. It should display the foreign pricing (always), not depending the site language.

    The pricing should change only with external IP’s, not with site language.

    So, with this situation is kinda 50% working.

    Sorry for the misunderstanding, we are checking on the IP location issue now.

    Plugin Support Hai Zheng?

    (@hailite)

    Apologize for the long time waiting without a solution. I will take this over.

    I noticed there is a cookie show_prices_by_country indicated the location. Did you try to add it to your vary rewrite rule?

    Thread Starter sergiom87

    (@sergiom87)

    Hi,

    We added this code:

    ### marker NOCACHE COOKIES start ###
    RewriteCond %{HTTP_COOKIE} show_prices_by_country
    RewriteRule .* – [E=Cache-Control:no-cache]
    RewriteRule .* – [E=Cache-vary:show_prices_by_country]
    ### marker NOCACHE COOKIES end ###

    We created the cookie show_prices_by_country to get country before it loads the website, it seems to be working, we are not totally sure but it seems to be caching by country.

    Plugin Support Hai Zheng?

    (@hailite)

    Can you show how you created the cookie show_prices_by_country? We are considering to add this vary to 3rd party plugin to make the compatibility.

Viewing 6 replies - 16 through 21 (of 21 total)
  • The topic ‘Geolocation Pricing and Caching’ is closed to new replies.