memos icon indicating copy to clipboard operation
memos copied to clipboard

编辑缓存优化建议

Open raxpkwd opened this issue 1 year ago • 1 comments

Is your feature request related to a problem?

在公司的电脑A上添加了一条待办清单后,

  • [ ] item A

这时双击编辑后再关闭,这时电脑A上有了编辑器缓存

回到家后在电脑B上,又新加了一条待办清单,

  • [ ] item A
  • [ ] item B

第二天到公司进行编辑,加载的是电脑A浏览器里的缓存, 这时如果没有注意点了保存,就会丢失 itemB 的信息 尤其在内容比较多时,很难发现是否少了内容

Describe the solution you'd like

也许可以在编辑内容,加载缓存的时候, 先从服务器获取该条数据的内容以及更新时间, 与本地缓存的时间对比后,来判断是加载浏览器里的缓存还是最新数据

或许也可以让用户配置在线缓存, 防止在电脑A上编辑了一大段文字没有保存,在电脑B添加了内容后,被覆盖了

Additional context

No response

raxpkwd avatar Dec 11 '23 07:12 raxpkwd

Issue is not in English. It has been translated automatically.


Title: Edit cache optimization suggestions

Is your feature request related to a problem?

After adding a to-do list on computer A in the company,

  • [ ] item A

At this time, double-click to edit and then close. At this time, there is an editor cache on computer A.

After I got home, I added a new to-do list on computer B.

  • [ ] item A
  • [ ] item B

When I went to the company for editing the next day, the cache in the browser of computer A was loaded. If you click save without paying attention at this time, the information of itemB will be lost. Especially when there is a lot of content, it is difficult to find out whether there is any missing content.

Describe the solution you'd like

Maybe when editing content and loading cache, First obtain the content and update time of the data from the server, Compare it with the local cache time to determine whether to load the cache in the browser or the latest data.

Perhaps also allow users to configure online caching, This prevents a large section of text from being edited on computer A but not saved, and then being overwritten after content is added to computer B.

Additional context

No response

Issues-translate-bot avatar Dec 11 '23 07:12 Issues-translate-bot

Refer to: https://github.com/usememos/memos/issues/2737

boojack avatar Jan 13 '24 06:01 boojack