Cache accounts/:id/statuses and single statuses too
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user