You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
publicasyncstop(): Promise<void>{this.removeListener('heartbeat',this.feedDog)this.watchdog.removeListener('reset',this.dogReset)this.removeListener('reset',this.throttleReset)this.watchdog.sleep()/** * FIXME: Huan(202008) clear cache when stop * keep the cache as a temp workaround since wechaty-puppet-hostie has reconnect issue * with un-cleared cache in wechaty-puppet will make the reconnect recoverable * * Related issue: https://github.com/wechaty/wechaty-puppet-hostie/issues/31 */// this.cacheContactPayload.clear()// this.cacheFriendshipPayload.clear()// this.cacheMessagePayload.clear()// this.cacheRoomPayload.clear()// this.cacheRoomInvitationPayload.clear()// this.cacheRoomMemberPayload.clear()}
The text was updated successfully, but these errors were encountered:
Instead of clear all local cache, I have another solution: save the cache with the token prefix so that the data can be separated from each other (user/tokens), and also when users login after logout with the same token, they can benifites from the cash.
Please feel free to let me know if you have any suggestions, thank you very much.
related issue: wechaty/puppet-service#31
The text was updated successfully, but these errors were encountered: