Add (back) rails-level JSON caching (#11333)
This commit is contained in:
@ -7,7 +7,8 @@ class Api::V1::Instances::PeersController < Api::BaseController
|
||||
respond_to :json
|
||||
|
||||
def index
|
||||
render_cached_json('api:v1:instances:peers:index', expires_in: 1.day) { Account.remote.domains }
|
||||
expires_in 1.day, public: true
|
||||
render_with_cache(expires_in: 1.day) { Account.remote.domains }
|
||||
end
|
||||
|
||||
private
|
||||
|
Reference in New Issue
Block a user