saved searches: add 'created' and 'posts' columns to index page.
This commit is contained in:
@@ -41,6 +41,11 @@ class SavedSearch < ApplicationRecord
|
||||
(REDIS_EXPIRY.to_i - ttl).seconds.ago
|
||||
end
|
||||
memoize :refreshed_at
|
||||
|
||||
def cached_size
|
||||
SavedSearch.redis.scard("search:#{query}")
|
||||
end
|
||||
memoize :cached_size
|
||||
end
|
||||
|
||||
concerning :Labels do
|
||||
|
||||
Reference in New Issue
Block a user