Permalink
Browse files

Fixing cache setting

  • Loading branch information...
1 parent ee5059b commit a9de3dd19047c8be38cdbfe00858aa68eb4791cc @lemming552 lemming552 committed Jan 17, 2014
Showing with 3 additions and 3 deletions.
  1. +3 −3 bin/saben/send_attack.pl
View
@@ -59,16 +59,16 @@
rows => 2,
});
my $target_colony = $targets->next;
- if (defined $target_colony && !$cache->get('saben'.$attacking_colony->id.'-'.$target_colony->empire_id)) {
+ if (defined $target_colony && !$cache->get('saben_attack',$attacking_colony->id.'-'.$target_colony->empire_id)) {
out('Attacking '.$target_colony->name.' with scanners and scows');
push @attacks, $ai->start_attack($attacking_colony, $target_colony, [qw(scanner scow)]);
- $cache->set('saben'.$attacking_colony->id.'-'.$target_colony->empire_id, 1, 60 * 60 * 48);
+ $cache->set('saben_attack',$attacking_colony->id.'-'.$target_colony->empire_id, 1, 60 * 60 * 48);
}
$target_colony = $targets->next;
if (defined $target_colony && !$cache->get('saben'.$attacking_colony->id.'-'.$target_colony->empire_id)) {
out('Attacking '.$target_colony->name.' with sweepers and bleeders and snarks');
push @attacks, $ai->start_attack($attacking_colony, $target_colony, [qw(sweeper bleeder snark1 snark2 snark3)]);
- $cache->set('saben'.$attacking_colony->id.'-'.$target_colony->empire_id, 1, 60 * 60 * 48);
+ $cache->set('saben_attack',$attacking_colony->id.'-'.$target_colony->empire_id, 1, 60 * 60 * 48);
}
}

0 comments on commit a9de3dd

Please sign in to comment.