• Resolved wazone

    (@wazone)


    Hello.

    I wonder what setting or what can be done wot prevent other users see location of the last visitors location/weather. ?

    e.g: If a person from Paris visits the next who visit from India will see that his location is Paris and not some city in india.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support qtwrk

    (@qtwrk)

    Hi,

    if that weather is added like widget or shortcode , you can try make it to be ESI block which will be no-cache and show real-time data to visitors

    if ESI block is not option , you will need to enable GeoIP support on server-level , or put a CDN like QUIC cloud or CloudFlare that provides country code on header to do cache vary

    Best regards,

    Thread Starter wazone

    (@wazone)

    Oh okey, uhm ?? i’ve read the ESI documentation but i couldn’t figure out how to make such with a shortcode. e.g [location-weather id=”123456″]

    When i create a block/widget area and adding the ESI the ESI setting is just reverted back to the original; Disabled; cache ttl: 28800

    ** i figure it outr i think;
    This is correct use?

    [esi location-weather id="123456" cache="private" ttl="10"]

    • This reply was modified 3 years, 4 months ago by wazone.
    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    yes , or change the part cache="private" ttl="10" to ttl="0" to make it no-cache

    Best regards,

    Thread Starter wazone

    (@wazone)

    Awesome ?? Thank you very much! ??
    Have a great sunday ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Weather Forecast’ is closed to new replies.