[or-cvs] r15032: (ticket:85) Clearing GeoIP cache after an update (torstatus/trunk)

kasimir at seul.org kasimir at seul.org
Sun Jun 8 15:28:52 UTC 2008


Author: kasimir
Date: 2008-06-08 11:28:52 -0400 (Sun, 08 Jun 2008)
New Revision: 15032

Modified:
   torstatus/trunk/tns_update.pl
Log:
(ticket:85) Clearing GeoIP cache after an update

Modified: torstatus/trunk/tns_update.pl
===================================================================
--- torstatus/trunk/tns_update.pl	2008-06-08 15:05:28 UTC (rev 15031)
+++ torstatus/trunk/tns_update.pl	2008-06-08 15:28:52 UTC (rev 15032)
@@ -168,6 +168,9 @@
 			$query = "UPDATE Status SET geoip=NOW();";
 			$dbresponse = $dbh->prepare($query);
 			$dbresponse->execute();
+			# Clear the cache to ensure incorrect entries are
+			# fixed
+			%geoIPCache = ();
 		}
 	}
 



More information about the tor-commits mailing list