[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] r15032: (ticket:85) Clearing GeoIP cache after an update (torstatus/trunk)
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 = ();
}
}