Added clearCache function

Created a function to clear the cache. This can be used to make sure goToPage() reloads the data from the server.