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

Follow-up to #16276
th-downstream
Claire 4 years ago committed by GitHub
parent 0f92d335a2
commit d0e2ae1769

@ -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?

Loading…
Cancel
Save