vonkanehoffen/Draww — pull request #6 by Robsteranium (2012-02-20 15:43:29+00:00)
Title: Cached hotness

Now cached in `post.cached_hotness` use `post.votes_hotness` to retrieve and `post.calculate_votes_hotness` to calculate on demand (won't affect cached value). A request to `/posts/sweep_hotness_cache` sweeps the cached hotness score for all posts. NB: this currently redirects to index on completion and anyone can access it i.e. there's no authentication filter - it might be better to render some text for logging via CRON. Also there's no error handling to speak of!