Geoip cache options patch

Akins, Brian Brian.Akins at turner.com
Mon Dec 20 21:29:20 MSK 2010


The attached patch allows you to change the geoip cache option in the
config.  For example:

geoip_country /usr/share/GeoIP/GeoIP.dat mmap;

Will use GEOIP_MMAP_CACHE.  The default is memory ( GEOIP_MEMORY_CACHE ),
the same as today.  The mmap option can make a large difference in memory
usage when using the large city data files.


-- 
Brian Akins

-------------- next part --------------
A non-text attachment was scrubbed...
Name: geoipcache.diff
Type: application/octet-stream
Size: 2920 bytes
Desc: not available
URL: <http://nginx.org/pipermail/nginx-devel/attachments/20101220/274c5ce2/attachment.obj>


More information about the nginx-devel mailing list