added clearCache method

A method to clear the cache...