fix: Run cleanByMoundId query on all shards

Signed-off-by: Joas Schilling <coding@schilljs.com>
pull/53380/head
Joas Schilling 1 year ago committed by Andy Scherzinger
parent 5a5d3bd3c1
commit efb2a9376b
  1. 1
      lib/private/Files/Cache/Storage.php

@ -213,6 +213,7 @@ class Storage {
$query = $db->getQueryBuilder();
$query->delete('filecache')
->where($query->expr()->in('storage', $query->createNamedParameter($storageIds, IQueryBuilder::PARAM_INT_ARRAY)));
$query->runAcrossAllShards();
$query->executeStatement();
$query = $db->getQueryBuilder();

Loading…
Cancel
Save