From 281fcfebb17a16ae447b2c8cfc63b770e5ffe541 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Thu, 26 Nov 2009 00:57:23 -0600 Subject: update every 5 minutes (rather than 1), and make it configurable --- lib/Crawl/Bot.pm | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'lib/Crawl/Bot.pm') diff --git a/lib/Crawl/Bot.pm b/lib/Crawl/Bot.pm index c5f6dcc..740a0bf 100644 --- a/lib/Crawl/Bot.pm +++ b/lib/Crawl/Bot.pm @@ -28,6 +28,12 @@ has cache_file => ( default => 'cache', ); +has update_time => ( + is => 'ro', + isa => 'Int', + default => 300, +); + has issues => ( traits => ['Hash'], isa => 'HashRef', @@ -106,7 +112,7 @@ sub tick { }); $self->save_cache; - return 60; + return $self->update_time; } 1; -- cgit v1.2.3-54-g00ecf