Merge pull request #56416 from nextcloud/fix/clear-mount-cache-on-storage-change

fix: Clear mount cache when file storage changes during move
bugfix/talk-16375/prepend-app-aswell
Joas Schilling 9 months ago committed by GitHub
commit 00e1264ade
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 1
      lib/private/Files/Cache/Cache.php

@ -791,6 +791,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…
Cancel
Save