diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2019-07-21 22:32:16 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-21 22:32:16 +0200 |
commit | c669bb42baa213dde27d831bb34f0ce14cfb29dc (patch) | |
tree | b609b21505c5f890b1200092de96b1bcc38b957e /app/controllers/activitypub | |
parent | 59fd622adc18cb094146f7cda1025782d505404e (diff) |
Add (back) rails-level JSON caching (#11333)
Diffstat (limited to 'app/controllers/activitypub')
-rw-r--r-- | app/controllers/activitypub/collections_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/activitypub/collections_controller.rb b/app/controllers/activitypub/collections_controller.rb index fa925b204..989fee385 100644 --- a/app/controllers/activitypub/collections_controller.rb +++ b/app/controllers/activitypub/collections_controller.rb @@ -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 |