Browse Source

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

Follow-up to #16276
closed-social-v3
Claire 2 years ago
committed by GitHub
parent
commit
12f8f39e25
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/controllers/media_proxy_controller.rb

+ 1
- 1
app/controllers/media_proxy_controller.rb View File

@ -45,7 +45,7 @@ class MediaProxyController < ApplicationController
end end
def lock_options def lock_options
{ redis: Redis.current, key: "media_download:#{params[:id]}" }
{ redis: Redis.current, key: "media_download:#{params[:id]}", autorelease: 15.minutes.seconds }
end end
def reject_media? def reject_media?

Loading…
Cancel
Save