Broke out clearCache as a method

As explained in #5, there is the occasional time we need a one-off cache bust. In this PR:

- Extracted cache clear logic into `clearCache` method
- Documented `clearCache` method

Fixes #5 

/cc @mlmorg @Raynos @orbiteleven @zheller