You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by se...@apache.org on 2017/05/16 22:57:12 UTC
[whimsy] branch master updated: default to 50 mins as cron job runs
every hour
This is an automated email from the ASF dual-hosted git repository.
sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git
The following commit(s) were added to refs/heads/master by this push:
new 6aa2651 default to 50 mins as cron job runs every hour
6aa2651 is described below
commit 6aa2651585e54cfde824d00f30cb104b03194514
Author: Sebb <se...@apache.org>
AuthorDate: Tue May 16 23:57:10 2017 +0100
default to 50 mins as cron job runs every hour
---
tools/site-scan.rb | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/tools/site-scan.rb b/tools/site-scan.rb
index 48905e7..f747f33 100755
--- a/tools/site-scan.rb
+++ b/tools/site-scan.rb
@@ -17,13 +17,14 @@ require 'json'
# Simple cache for site pages
class Cache
# Don't bother checking cache entries that are younger (seconds)
+ # This is mainly intended for local testing
attr_accessor :minage
attr_accessor :enabled
- def initialize(dir: '/tmp/site-scan-cache', minage: 3600, enabled: true)
+ def initialize(dir: '/tmp/site-scan-cache', minage: 3000, enabled: true)
@dir = dir
@enabled = enabled
- @minage = minage
+ @minage = minage # default to 50 mins as cron job runs every hour
begin
FileUtils.mkdir_p dir
rescue
--
To stop receiving notification emails like this one, please contact
['"commits@whimsical.apache.org" <co...@whimsical.apache.org>'].