Optimization of index files creation
Created by: pmetras
Another strange behaviour with master branch, probably a case for better optimization.
- Clear the gallery cache.
- Run the scanner. A lot of
.json
index files are created. - Run again the scanner, without changing anything. Again
.json
files are generated while there were no changes between the two runs. Better, some stale files are suppressed when there's analbum.ini
file!
So image files are generated only when changed. But index files are always generated. We could only recreate them when we detect a change.
And search index files for album metadata are considered stale and deleted. At the first run, one can search for keywords on album's metadata. On the second run, the same search fails.