Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
......@@ -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?
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment