chore: update geo in a batch

This commit is contained in:
wwqgtxx
2024-09-09 10:05:38 +08:00
parent 595a575cde
commit ef244b896a
2 changed files with 95 additions and 58 deletions

View File

@@ -209,8 +209,11 @@ func LoadGeoIPMatcher(country string) (router.IPMatcher, error) {
return matcher, nil
}
func ClearCache() {
func ClearGeoSiteCache() {
loadGeoSiteMatcherListSF.Reset()
loadGeoSiteMatcherSF.Reset()
}
func ClearGeoIPCache() {
loadGeoIPMatcherSF.Reset()
}