Adding the ability to rebuild caches rather than just delete them

Closes #11