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

Follow-up to #16276
This commit is contained in:
Claire 2021-05-22 15:00:33 +02:00 committed by GitHub
parent 1db28332b5
commit 12f8f39e25
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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