mirror of
https://github.com/nextcloud/server.git
synced 2026-05-14 09:29:52 -04:00
fix: Clear mount cache when file storage changes during move
Signed-off-by: Benjamin Frueh <benjamin.frueh@gmail.com>
This commit is contained in:
parent
aec7253ddd
commit
563fa568d3
1 changed files with 1 additions and 0 deletions
|
|
@ -775,6 +775,7 @@ class Cache implements ICache {
|
|||
$this->connection->commit();
|
||||
|
||||
if ($sourceCache->getNumericStorageId() !== $this->getNumericStorageId()) {
|
||||
\OCP\Server::get(\OCP\Files\Config\IUserMountCache::class)->clear();
|
||||
$this->eventDispatcher->dispatchTyped(new CacheEntryRemovedEvent($this->storage, $sourcePath, $sourceId, $sourceCache->getNumericStorageId()));
|
||||
$event = new CacheEntryInsertedEvent($this->storage, $targetPath, $sourceId, $this->getNumericStorageId());
|
||||
$this->eventDispatcher->dispatch(CacheInsertEvent::class, $event);
|
||||
|
|
|
|||
Loading…
Reference in a new issue