Enable deletion of individual cache files
By passing None
as the data argument to Workflow.cache_data()
, you can force the deletion of the corresponding cache file:
from workflow import Workflow
wf = Workflow()
wf.cache_data('test', None)
will delete the cache file for name/key test
.
This may be useful in forcing your workflow to update its cache data.