Cache accounts/:id/statuses and single statuses too
This commit is contained in:
parent
2112a81e86
commit
79a0135869
2 changed files with 23 additions and 1 deletions
|
@ -9,6 +9,8 @@ class Api::V1::StatusesController < ApiController
|
|||
respond_to :json
|
||||
|
||||
def show
|
||||
cached = Rails.cache.read(@status.cache_key)
|
||||
@status = cached unless cached.nil?
|
||||
end
|
||||
|
||||
def context
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue