diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2016-03-22 21:38:47 +0100 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2016-03-22 21:38:47 +0100 |
commit | 12559b01eae408c0f3e820ef9c6bc6e356ab889a (patch) | |
tree | 87d857393ce24b1937c654ce7252b6315b7e77f9 /lib/tasks | |
parent | 02e4fb2e06f424c16ab25ea294a4af6490a5f7e3 (diff) |
Add pagination by max_id instead of offset/limit
Diffstat (limited to 'lib/tasks')
-rw-r--r-- | lib/tasks/feeds.rake | 8 |
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 |