Add (back) rails-level JSON caching (#11333)
This commit is contained in:
1 parent
59fd622adc
commit
c669bb42ba
10 files changed
+64
-50
No files matched your search
@@ -41,7 +41,7 @@ class AccountsController < ApplicationController
|
||||
|
||||
format.json do
|
||||
expires_in 3.minutes, public: !(authorized_fetch_mode? && signed_request_account.present?)
|
||||
render json: @account, content_type: 'application/activity+json', serializer: ActivityPub::ActorSerializer, adapter: ActivityPub::Adapter, fields: restrict_fields_to
|
||||
render_with_cache json: @account, content_type: 'application/activity+json', serializer: ActivityPub::ActorSerializer, adapter: ActivityPub::Adapter, fields: restrict_fields_to
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in new issue
Block a user