Clear the cache on rebuilding