added clearCache() method