Invalidate cache when reloading