|Number of votes:||1|
Last week, David Knipe blogged about how to update the MaxMind GeoIP database that ships with the EPiServer Framework.
This inspired me to create an EPiServer Scheduled Job to do this automatically:
As the job needs to download a file from the internet, which could be a lengthy operation, I made it a ‘stoppable’ job. You can read more about stoppable scheduled jobs here.
The job also has a settings page where you can adjust the URL of the downloadable database file as well as a couple of other settings:
It seems that MaxMind update their ‘Lite’ database on the 1st of every month so it’s probably a good idea to schedule the job for the 2nd of every month.
You can obtain a Deployment Center Zip Module here to add the functionality to a site or if you want the source code then download the EPiServer.Extensions.GeoIPUpdate.1.0.nupkg package from nuget.episerver.com.
The code has been tested but of course if you find any bugs or have any suggestions for improvements then please let me know.