Revert "clear cache with rmtree()"
Didn't mean to push this to master!
This reverts commit 2774dd86c1c3bc765fe44a0264ed7a71444f4032.