diff scan.pl @ 22:552528bb4917

refined the cache timeout is 12 hours.
author "Rex Tsai <chihchun@kalug.linux.org.tw>"
date Wed, 08 Oct 2008 19:27:54 +0800
parents 5635e75c92d0
children 51a35c3d057e
line wrap: on
line diff
--- a/scan.pl	Wed Oct 08 19:25:31 2008 +0800
+++ b/scan.pl	Wed Oct 08 19:27:54 2008 +0800
@@ -29,7 +29,7 @@
         printf("city %d %s saved\n", $city->{cityId}, $city->{cityname});
         if(my $user = Ikariam::User->retrieve($city->{user}))
         {
-            if($user->time le (time - 60*60)) {
+            if($user->time le (time - 60*60*12)) {
                 # Download user profile.
                 foreach my $x (qw/score army_score_main trader_score_secondary/)
                 {