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
kenny
(@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 4 years, 10 months ago by
kenny.
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
kenny
(@wazone)
Awesome 😀 Thank you very much! 😀
Have a great sunday 😀