Menu elements disappear randomly when visiting from specific country (VPN) [closed]

Closed. This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 4 hours ago. Improve this question I have this very odd issue I've come across on my Wordpress site. First of I should mention that I am using mmenus.js, geotargetingwp and lscache as a combination. On the site I use geotargeting to display different content for different countries. This works well in general and I have never experienced any issues. For example, visiting from UK, Canada, Germany, Norway, Finland and so on, all works well and it geotargets as it should. However, when visiting from France, I've noticed that: A) it doesn't always geotarget properly (for example, it will display elements that should not be displayed) and it happens randomly on different pages. B) randomly, some pages will have the login and register buttons missing from the menu. With some help from the plugin author of geotargetingwp, at least I think we got problem A fixed by adding this code to functions.php: //disable bot detection geot add_filter('geot/enable_crawl_detection','__return_false'); His idea was that bots visiting from France might be causing the issue. Problem B still persists. When I clear cache, it all looks good for the day. However, on the next day, the problem appears again. To me it seems to be a caching issue as clearing cache or deactivating cache temporarily fixes the problem, but I am baffled as to why it would only happen when visiting from France. I have checked the console on Chrome and Firefox and see no direct issues or particular errors that would be causing this. We're all completely lost as to why this is happening. I tried searching Stack Overflow and the closest thing I could find was this and something about crone job: Wordpress Nav Menu page items disappearing randomly At this point, I am not sure what to try except for clearing cache or deactivating it. However, this is only a temporary solution. The plugin authors of both geotargetingwp and lscache are both unable to pinpoint the issue.

Comment (0)

You’ll be in good company