diff --git a/src/DynamicObjects.jl b/src/DynamicObjects.jl index dc55c80..dcae56a 100644 --- a/src/DynamicObjects.jl +++ b/src/DynamicObjects.jl @@ -491,7 +491,10 @@ _computeproperty(o, name, indices...; __status__=nothing, kwargs...) = begin nothing end else - cache_status == :started && @warn "Cache file $cache_path exists but has size 0.\nAssuming a previous run failed." + if cache_status == :started + @warn "Cache file $cache_path exists but has size 0. Removing and recomputing." + rm(cache_path) + end touch(cache_path) nothing end