WPFC caches visitor’s location
-
I’m on the latest version of WPFC. I’m developing a plugin that uses the Cloudflare IP Geolocation API. I obtain the visitor’s location (country) using $_SERVER[“HTTP_CF_IPCOUNTRY”] as specified by the Cloudflare documentation. The visitor’s country is correctly obtained when WPFC is disabled but not when WPFC is enabled. Specifically, the option “Cache System” breaks this functionality. This issue isn’t specific to the Cloudflare API. It produces the same results using any method implemented in the GeoIP Detection plugin.
Is there a way to ensure that $_SERVER[“HTTP_CF_IPCOUNTRY”] isn’t cached while having the Cache System option enabled. Or perhaps you can suggest another way of obtaining the visitor’s location that bypasses WPFC?
- The topic ‘WPFC caches visitor’s location’ is closed to new replies.