Fix #950: Re-create cached files if target was deleted
Merge pull request #969 from gzm0/fix-cache

Fix #950: Re-create cached files if target was deleted