Unverified Commit 12f8f39e authored by Claire's avatar Claire Committed by GitHub
Browse files

Fix media proxy RedisLocks auto-releasing too fast (#16291)

Follow-up to #16276
parent 1db28332
......@@ -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?
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment