|
|
|
@ -791,6 +791,7 @@ class Cache implements ICache {
|
|
|
|
$this->connection->commit();
|
|
|
|
$this->connection->commit();
|
|
|
|
|
|
|
|
|
|
|
|
if ($sourceCache->getNumericStorageId() !== $this->getNumericStorageId()) {
|
|
|
|
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()));
|
|
|
|
$this->eventDispatcher->dispatchTyped(new CacheEntryRemovedEvent($this->storage, $sourcePath, $sourceId, $sourceCache->getNumericStorageId()));
|
|
|
|
$event = new CacheEntryInsertedEvent($this->storage, $targetPath, $sourceId, $this->getNumericStorageId());
|
|
|
|
$event = new CacheEntryInsertedEvent($this->storage, $targetPath, $sourceId, $this->getNumericStorageId());
|
|
|
|
$this->eventDispatcher->dispatch(CacheInsertEvent::class, $event);
|
|
|
|
$this->eventDispatcher->dispatch(CacheInsertEvent::class, $event);
|
|
|
|
|