Skip to content

Commit 4ebcfa0

Browse files
committed
fix missing metadata in disk manager calculation #1126
1 parent 745338b commit 4ebcfa0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backend/model/fileaccess/DiskManager.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ export class DiskManager {
296296
directory.cache.mediaCount = directory.media.length;
297297
// TODO: cache is now calculated purely though DB after indexing of the directory is done.
298298
// Delete is with caution (double check if it still indeed not used)
299-
if (!directory.isPartial) {
299+
if (!directory.isPartial && !settings.noMetadata) {
300300
directory.cache.youngestMedia = Number.MAX_SAFE_INTEGER;
301301
directory.cache.oldestMedia = Number.MIN_SAFE_INTEGER;
302302

0 commit comments

Comments
 (0)