summaryrefslogtreecommitdiff
path: root/cacher.lua
diff options
context:
space:
mode:
Diffstat (limited to 'cacher.lua')
-rw-r--r--cacher.lua3
1 files changed, 2 insertions, 1 deletions
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