Project

General

Profile

[Solved] Small patch to mod_geoip to support (last-) index cache, (not) checking for database updates and shared memory caches

Added by clarkeycat over 9 years ago

Since this seems to be the path of least resistance to submit a small patch, here's those mentioned above (they're supported by the underlying GeoIP API) as a diff from the provided 1.4.x version at [[http://redmine.lighttpd.net/projects/1/wiki/Docs_ModGeoip]]. (It's working happily in 1.4.35.) The patch also applies to the 1.5.x version at the same, but patch need to be told to ignore whitespace (-l).

New options:
geoip.index-cache = <enable|[disable]>: cache the last index only; saves lots of memory, ignored if geoip.memory-cache
geoip.check-cache = <[enable]|disable>: don't bother to look for (once-a-month) updates, a fair bit faster
geoip.mmap-cache = <enable|[disable]> : store cache in shared memory (if you're brave ;)

AL:)

mod_geoip_cache_opts.diff (3.75 KB) mod_geoip_cache_opts.diff geoip.index-cache [enable], geoip.check-cache [disable], geoip.mmap-cache [enable, experimental]

    (1-1/1)