From 7ffcfb63e9df580e3d6b713402fc6e827e82d697 Mon Sep 17 00:00:00 2001 From: David Vazgenovich Shakaryan Date: Sun, 18 Jan 2026 00:15:19 -0800 Subject: allow reloading data while running --- cacher.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'cacher.lua') diff --git a/cacher.lua b/cacher.lua index ef5d3b1..70d7d2c 100644 --- a/cacher.lua +++ b/cacher.lua @@ -12,7 +12,8 @@ local function exec(obj, opts, call_opts, func, func_name, ...) local path = mp_utils.join_path(opts.directory, fn) local f = mp_utils.file_info(path) local data - local miss = not f or os.time() - f.mtime > opts.time + local miss = call_opts.force or not f or + os.time() - f.mtime > opts.time if miss then if call_opts.before_miss then -- cgit v1.2.3-70-g09d2