Flush cache before calling vapp_by_name to avoid cached data is out of date.

Change-Id: I58c15ed2b08a9b2c476513fa6847f3f6ea0d8312