How to clear the cache of location lookups with mod_geoip
January 28, 2019
Earlier today I noticed that mod_geoip wasn't reporting my correct location using the GeoLiteCity database from Maxmind.
It simply turned out to be that the problem was due to my GeoLiteCity database being outdated. I downloaded the most recent GeoliteCity database from Maxmind and the problem persisted. My correct location was still not showing.
All I had to do to clear the mod_geoip cache was to restart Apache. You could probably just reload Apache and achieve the same. I also think there's a different way of clearing the cache of mod_geoip.
Anyway, with the following command to restart Apache, I had cleared the cached IP to location lookups and everything then worked as it should.
/etc/init.d/apache2 restart