diff --git a/imloader.py b/imloader.py index d099d86..63e5027 100644 --- a/imloader.py +++ b/imloader.py @@ -31,4 +31,7 @@ class CachedImageLoader: self.image_cache[path] = ret_image return ret_image + def clear_cache(self): + self.image_cache.clear() + cached_image_loader = CachedImageLoader()