[ui] override default time limit for thumbnails on disk with env var

This commit is contained in:
Loïc Vital 2023-01-06 14:27:37 +01:00
parent b372946516
commit a96d886923
2 changed files with 8 additions and 2 deletions

View file

@ -21,7 +21,8 @@ class ThumbnailCache(QObject):
This class also takes care of cleaning the thumbnail directory,
i.e. scanning this directory and removing thumbnails that have not been used for too long.
The default time limit is one week.
The default time limit is 90 days.
This time limit can be overriden with the MESHROOM_THUMBNAIL_TIME_LIMIT environment variable.
The main use case for thumbnails in Meshroom is in the ImageGallery.
"""
@ -33,7 +34,7 @@ class ThumbnailCache(QObject):
thumbnailSize = QSize(100, 100)
# Time limit for thumbnail storage on disk, expressed in days
storageTimeLimit = 7
storageTimeLimit = 90
@Slot(QUrl, result=QUrl)
def thumbnail(self, imgSource):