Add (back) rails-level JSON caching (#11333)

This commit is contained in:
Eugen Rochko
2019-07-21 22:32:16 +02:00
committed by GitHub
parent 59fd622adc
commit c669bb42ba
10 changed files with 64 additions and 50 deletions

View File

@ -11,7 +11,7 @@ class ActivityPub::CollectionsController < ActivityPub::BaseController
def show
expires_in 3.minutes, public: public_fetch_mode?
render json: collection_presenter, content_type: 'application/activity+json', serializer: ActivityPub::CollectionSerializer, adapter: ActivityPub::Adapter, skip_activities: true
render_with_cache json: collection_presenter, content_type: 'application/activity+json', serializer: ActivityPub::CollectionSerializer, adapter: ActivityPub::Adapter, skip_activities: true
end
private