summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorScott Ostler <sbsotler@gmail.com>2010-11-14 13:19:49 -0800
committerScott Ostler <sbsotler@gmail.com>2010-11-14 13:19:49 -0800
commit789ed39751c17fa1aa73f3119a80403e34f0d984 (patch)
tree65a668018f3c6ddff6599589d9890e7cfd7e5903 /src
parent1179b2a2aefb6a4c15db9634cc0c9c910fea8efa (diff)
Disable scores/hall updating
Diffstat (limited to 'src')
-rw-r--r--src/fame.clj4
-rw-r--r--src/site.clj3
2 files changed, 4 insertions, 3 deletions
diff --git a/src/fame.clj b/src/fame.clj
index 0732992..1baf6e0 100644
--- a/src/fame.clj
+++ b/src/fame.clj
@@ -2,8 +2,8 @@
(:use scheduled-agent
utils))
-; should probably cache this to disk somewhere
-(def hall-of-fame-update-frequency (* 5 60 60))
+; sostler: don't refresh until redis cache can be added
+(def hall-of-fame-update-frequency (* 5 60 60 999999))
(def hall-of-fame-query "
select m.created_on, m.message_id, m.content, u.nick, u.avatar, r.key, count(*)
diff --git a/src/site.clj b/src/site.clj
index 1abb876..4c3560e 100644
--- a/src/site.clj
+++ b/src/site.clj
@@ -328,7 +328,8 @@ ORDER BY cnt DESC
{:list res
:map (zipmap (map :nick res) (map :cnt res))}))
-(def *scores-refresh-period-sec* (* 29 60))
+;; sostler: stop score refresh until redis cache can be added
+(def *scores-refresh-period-sec* (* 29 60 9999999))
(def *user-scores*
(scheduled-agent build-score-list