diff --git a/src/utils/geo_lookup.cc b/src/utils/geo_lookup.cc index e0801f835b..00c4592a40 100644 --- a/src/utils/geo_lookup.cc +++ b/src/utils/geo_lookup.cc @@ -70,7 +70,7 @@ bool GeoLookup::setDataBase(const std::string& filePath, #ifdef WITH_GEOIP if (m_version == NOT_LOADED) { - m_gi = GeoIP_open(filePath.c_str(), GEOIP_INDEX_CACHE); + m_gi = GeoIP_open(filePath.c_str(), GEOIP_MEMORY_CACHE); if (m_gi == NULL) { intGeo.append("GeoIP: Can't open: " + filePath + "."); } else {