Default to reusing etags in the scanner
This commit is contained in:
parent
f73d653036
commit
16b0d52031
1 changed files with 2 additions and 2 deletions
4
lib/private/files/cache/scanner.php
vendored
4
lib/private/files/cache/scanner.php
vendored
|
@ -216,7 +216,7 @@ class Scanner extends BasicEmitter {
|
|||
*/
|
||||
public function scan($path, $recursive = self::SCAN_RECURSIVE, $reuse = -1) {
|
||||
if ($reuse === -1) {
|
||||
$reuse = ($recursive === self::SCAN_SHALLOW) ? self::REUSE_ETAG | self::REUSE_SIZE : 0;
|
||||
$reuse = ($recursive === self::SCAN_SHALLOW) ? self::REUSE_ETAG | self::REUSE_SIZE : self::REUSE_ETAG;
|
||||
}
|
||||
$data = $this->scanFile($path, $reuse);
|
||||
$size = $this->scanChildren($path, $recursive, $reuse);
|
||||
|
@ -245,7 +245,7 @@ class Scanner extends BasicEmitter {
|
|||
*/
|
||||
public function scanChildren($path, $recursive = self::SCAN_RECURSIVE, $reuse = -1) {
|
||||
if ($reuse === -1) {
|
||||
$reuse = ($recursive === self::SCAN_SHALLOW) ? self::REUSE_ETAG | self::REUSE_SIZE : 0;
|
||||
$reuse = ($recursive === self::SCAN_SHALLOW) ? self::REUSE_ETAG | self::REUSE_SIZE : self::REUSE_ETAG;
|
||||
}
|
||||
$this->emit('\OC\Files\Cache\Scanner', 'scanFolder', array($path, $this->storageId));
|
||||
$size = 0;
|
||||
|
|
Loading…
Reference in a new issue