add instance var and helper method to check if the cache was previously rebuilt