Fix bug on clearing cache.
Merge remote-tracking branch 'splittingred/pr/50' into pr-50