From 12559b01eae408c0f3e820ef9c6bc6e356ab889a Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Tue, 22 Mar 2016 21:38:47 +0100 Subject: Add pagination by max_id instead of offset/limit --- lib/tasks/feeds.rake | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 lib/tasks/feeds.rake (limited to 'lib/tasks') diff --git a/lib/tasks/feeds.rake b/lib/tasks/feeds.rake new file mode 100644 index 000000000..8f4dc78b9 --- /dev/null +++ b/lib/tasks/feeds.rake @@ -0,0 +1,8 @@ +namespace :feeds do + + desc "Removes all feeds from Redis, forcing a precompute on next request for each user" + task clear: :environment do + $redis.keys('feed:*').each { |key| $redis.del(key) } + end + +end -- cgit