about summary refs log tree commit diff
path: root/app/controllers/api/v1/instances/peers_controller.rb
diff options
context:
space:
mode:
authorHolly "Frinkeldoodle" Lotor <admin@frinkel.tech>2020-01-17 07:07:03 +0000
committerHolly "Frinkeldoodle" Lotor <admin@frinkel.tech>2020-01-17 07:32:59 +0000
commit93151f0c51a0418cd51e270a0834c92a771910ab (patch)
tree800f7af97950280ed591129e3df6aee5641e2ba5 /app/controllers/api/v1/instances/peers_controller.rb
parent753d06495189dd6ffd95ea91028cc2a03866e974 (diff)
Port render_with_cache, CacheConcern from upstream
Diffstat (limited to 'app/controllers/api/v1/instances/peers_controller.rb')
-rw-r--r--app/controllers/api/v1/instances/peers_controller.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/controllers/api/v1/instances/peers_controller.rb b/app/controllers/api/v1/instances/peers_controller.rb
index 93c4c45af..bb04e604d 100644
--- a/app/controllers/api/v1/instances/peers_controller.rb
+++ b/app/controllers/api/v1/instances/peers_controller.rb
@@ -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) { actively_federated_domains }
+    expires_in 1.day, public: true
+    render_with_cache(expires_in: 1.day) { actively_federated_domains }
   end
 
   private