Clear memory cache and db if server return empty.