Fix bug for save entity, clear memcache