Moving some cache-clearing out of a controller.