Is there a way to use AMM with Joomla system caching while still serving different modules by Geo? In my tests, when I turn on system cache, it breaks the geographical serving of modules. If not system cache, is there another caching option that does play well with AMM Pro for this purpose?
I tried switching off caching in module but it did not fix the issue.
I was not referring to page cache. I am referring to System > Global Config > System Cache = ON. (the issue persists with both progressive and conservative options.)
AMM Pro geo serving works perfect with cache turned off, but I want the performance boost from caching.
Actually it may be working w module caching turned off. I had to clear some more caches. I'm testing now across more devices and locations. Stay tuned. Thanks!
Ok, I turned off caching on all modules and tested across numerous devices and locations (via VPN), but I was unable to produce consistent results. The geo-targeting issue still persists when global cache is enabled. Any other ideas? Thanks!
Only JCH Optimize, but I turned that off while testing. I'll do some more tests today, with full history clears in between to best replicate new users in new locations, as the results were almost consistent yesterday but not quite. Thanks.
I'm still having this cache issue for geolocation with AMM. I've tried every combination of cache settings (conservative, progressive, page cache on/off, browser cache on/off, etc.) and I always have individual module caching set to No Caching. Currently I only have Conservative cache with no page cache. Regardless of how I set it, AMM serves non-US modules to US-based users and vice versa. When I have all caching turned off, AMM geotargeting works flawlessly, but I need the performance boost of caching. In addition to my own tests where I see this error daily, I can tell this is happening globally based on what users are clicking. As soon as I clear the cache the problem goes away.
Fyi I'm using JCHOptimize performance plugin and SiteGround hosting if that matters. Please help me fix this issue.
Joomla (4) on Siteground is the issue. Their server-side caching causes all sorts of weird issues. And - as far as I know - they offer no solution to solve it.
How pages are cached is outside the control of Advanced Module Manager.
If modules are still getting cached even though you have switched caching off for those modules (and page cache is off), then the issue is either with server caching (which I suspect) or some caching extension.
See if you can reproduce the issue on a clean Joomla installation.
Hey. This may be a long shot, but is it possible that this ongoing issue is caused because the geoip extension being set to off in PHP Settings in Site Tools? Screenshot attached. Thanks.
I don't think that has any effect on how your modules are cached. It will also not affect the Regular Labs GeoIP Library, as that does not use the PHP core geoip.