Browse Source

Deduplicate storage ids in list before reusing

Signed-off-by: Joas Schilling <coding@schilljs.com>
pull/31816/head
Joas Schilling 4 years ago
parent
commit
d3b9d49c22
No known key found for this signature in database GPG Key ID: 7076EA9751AACDDA
  1. 1
      lib/private/Files/Cache/Storage.php

1
lib/private/Files/Cache/Storage.php

@ -240,6 +240,7 @@ class Storage {
->from('mounts')
->where($query->expr()->eq('mount_id', $query->createNamedParameter($mountId, IQueryBuilder::PARAM_INT)));
$storageIds = $query->executeQuery()->fetchAll(\PDO::FETCH_COLUMN);
$storageIds = array_unique($storageIds);
$query = $db->getQueryBuilder();
$query->delete('filecache')

Loading…
Cancel
Save