Merge branch 'filesystem' into filesystem-etags
Conflicts: lib/files/cache/updater.php
This commit is contained in:
commit
aea8b0ff5c
|
@ -30,11 +30,13 @@ class Updater {
|
||||||
* @var string $internalPath
|
* @var string $internalPath
|
||||||
*/
|
*/
|
||||||
list($storage, $internalPath) = self::resolvePath($path);
|
list($storage, $internalPath) = self::resolvePath($path);
|
||||||
$cache = new Cache($storage);
|
if ($storage) {
|
||||||
$scanner = new Scanner($storage);
|
$cache = $storage->getCache();
|
||||||
$scanner->scan($internalPath, Scanner::SCAN_SHALLOW);
|
$scanner = $storage->getScanner();
|
||||||
$cache->correctFolderSize($internalPath);
|
$scanner->scan($internalPath, Scanner::SCAN_SHALLOW);
|
||||||
self::eTagUpdate($path);
|
$cache->correctFolderSize($internalPath);
|
||||||
|
self::eTagUpdate($path);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static public function deleteUpdate($path) {
|
static public function deleteUpdate($path) {
|
||||||
|
@ -43,10 +45,12 @@ class Updater {
|
||||||
* @var string $internalPath
|
* @var string $internalPath
|
||||||
*/
|
*/
|
||||||
list($storage, $internalPath) = self::resolvePath($path);
|
list($storage, $internalPath) = self::resolvePath($path);
|
||||||
$cache = new Cache($storage);
|
if ($storage) {
|
||||||
$cache->remove($internalPath);
|
$cache = $storage->getCache();
|
||||||
$cache->correctFolderSize($internalPath);
|
$cache->remove($internalPath);
|
||||||
self::eTagUpdate($path);
|
$cache->correctFolderSize($internalPath);
|
||||||
|
self::eTagUpdate($path);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static public function eTagUpdate($path) {
|
static public function eTagUpdate($path) {
|
||||||
|
|
Loading…
Reference in New Issue