clears cache when post submission is made