From 5f57fd4f21f7ecd4038ca6e66a4b89622cbcc9fc Mon Sep 17 00:00:00 2001 From: pacien Date: Mon, 6 Jan 2020 01:30:30 +0100 Subject: compiler: do not invalidate cache on gallery settings modification --- compiler/src/Compiler.hs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'compiler/src/Compiler.hs') diff --git a/compiler/src/Compiler.hs b/compiler/src/Compiler.hs index b84dedf..a347433 100644 --- a/compiler/src/Compiler.hs +++ b/compiler/src/Compiler.hs @@ -39,8 +39,7 @@ import Files , isHidden , nodeName , filterDir - , ensureParentDir - , isOutdated ) + , ensureParentDir ) import Processors ( itemFileProcessor, thumbnailFileProcessor , skipCached, withCached ) @@ -111,9 +110,7 @@ compileGallery inputDirPath outputDirPath rebuildAll = let sourceTree = filterDir sourceFilter inputDir inputTree <- readInputTree sourceTree - invalidateCache <- isOutdated False inputGalleryConf outputIndex - let cache = if invalidateCache || rebuildAll then skipCached else withCached - + let cache = if rebuildAll then skipCached else withCached let itemProc = itemProcessor (pictureMaxResolution config) cache let thumbnailProc = thumbnailProcessor (thumbnailMaxResolution config) cache let galleryBuilder = buildGalleryTree itemProc thumbnailProc (tagsFromDirectories config) -- cgit v1.2.3