mirror of
https://github.com/nextcloud/server.git
synced 2026-04-23 07:08:34 -04:00
Merge branch 'filesystem' into filesystem-etags
Conflicts: lib/files/cache/updater.php
This commit is contained in:
commit
aea8b0ff5c
1 changed files with 13 additions and 9 deletions
22
lib/files/cache/updater.php
vendored
22
lib/files/cache/updater.php
vendored
|
|
@ -30,11 +30,13 @@ class Updater {
|
|||
* @var string $internalPath
|
||||
*/
|
||||
list($storage, $internalPath) = self::resolvePath($path);
|
||||
$cache = new Cache($storage);
|
||||
$scanner = new Scanner($storage);
|
||||
$scanner->scan($internalPath, Scanner::SCAN_SHALLOW);
|
||||
$cache->correctFolderSize($internalPath);
|
||||
self::eTagUpdate($path);
|
||||
if ($storage) {
|
||||
$cache = $storage->getCache();
|
||||
$scanner = $storage->getScanner();
|
||||
$scanner->scan($internalPath, Scanner::SCAN_SHALLOW);
|
||||
$cache->correctFolderSize($internalPath);
|
||||
self::eTagUpdate($path);
|
||||
}
|
||||
}
|
||||
|
||||
static public function deleteUpdate($path) {
|
||||
|
|
@ -43,10 +45,12 @@ class Updater {
|
|||
* @var string $internalPath
|
||||
*/
|
||||
list($storage, $internalPath) = self::resolvePath($path);
|
||||
$cache = new Cache($storage);
|
||||
$cache->remove($internalPath);
|
||||
$cache->correctFolderSize($internalPath);
|
||||
self::eTagUpdate($path);
|
||||
if ($storage) {
|
||||
$cache = $storage->getCache();
|
||||
$cache->remove($internalPath);
|
||||
$cache->correctFolderSize($internalPath);
|
||||
self::eTagUpdate($path);
|
||||
}
|
||||
}
|
||||
|
||||
static public function eTagUpdate($path) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue