mirror of
https://github.com/nextcloud/server.git
synced 2026-02-18 18:28:50 -05:00
Merge pull request #56416 from nextcloud/fix/clear-mount-cache-on-storage-change
fix: Clear mount cache when file storage changes during move
This commit is contained in:
commit
00e1264ade
1 changed files with 1 additions and 0 deletions
|
|
@ -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…
Reference in a new issue