[#2180] Avoid fetching old PJ modification times separately
Speeds up transfer
This commit is contained in:
parent
7b18c51483
commit
270c7568fa
4 changed files with 25 additions and 19 deletions
|
@ -37,7 +37,7 @@ module ActiveStorage
|
|||
def delete_prefixed(prefix)
|
||||
instrument :delete_prefixed, prefix: prefix do
|
||||
@adapter.session do |s|
|
||||
keys = s.list_prefixed(prefix)
|
||||
keys = s.list_prefixed(prefix).map(&:first)
|
||||
s.delete_keys(keys)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue