Avoid touch operation when unshare public link
This commit is contained in:
parent
9921ca11b5
commit
010b97febd
|
@ -377,9 +377,11 @@ class OC_Share {
|
|||
$query = OCP\DB::prepare("DELETE FROM *PREFIX*sharing WHERE SUBSTR(source, 1, ?) = ? AND uid_owner = ? AND uid_shared_with ".self::getUsersAndGroups($uid_shared_with));
|
||||
$query->execute(array(strlen($source), $source, OCP\USER::getUser()));
|
||||
// Update mtime of shared folder to invoke a file cache rescan
|
||||
if ($uid_shared_with != self::PUBLICLINK) {
|
||||
$sharedFolder = '/'.$uid_shared_with.'/files/Shared';
|
||||
OC_Filesystem::getStorage($sharedFolder)->touch($sharedFolder);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Unshare the item from the current user, removes it only from the database and doesn't touch the source file
|
||||
|
|
Loading…
Reference in New Issue