about summary refs log tree commit diff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/tasks/feeds.rake8
1 files changed, 8 insertions, 0 deletions
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