delete the cache if user is logged in