From d0e2ae1769e1b9bf59e00363e74d05ac94ed9fcd Mon Sep 17 00:00:00 2001 From: Claire Date: Sat, 22 May 2021 15:00:33 +0200 Subject: [PATCH] Fix media proxy RedisLocks auto-releasing too fast (#16291) Follow-up to #16276 --- app/controllers/media_proxy_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/media_proxy_controller.rb b/app/controllers/media_proxy_controller.rb index 1b610318d3..5596e92d18 100644 --- a/app/controllers/media_proxy_controller.rb +++ b/app/controllers/media_proxy_controller.rb @@ -45,7 +45,7 @@ class MediaProxyController < ApplicationController end def lock_options - { redis: Redis.current, key: "media_download:#{params[:id]}" } + { redis: Redis.current, key: "media_download:#{params[:id]}", autorelease: 15.minutes.seconds } end def reject_media?