logseq / logseq

A privacy-first, open-source platform for knowledge management and collaboration. Download link: http://github.com/logseq/logseq/releases. roadmap: http://trello.com/b/8txSM12G/roadmap
https://logseq.com
GNU Affero General Public License v3.0
32.43k stars 1.89k forks source link

Clearing cache should not clear user configurations #4146

Open xxchan opened 2 years ago

xxchan commented 2 years ago

Edited by: @Bad3r

Currently clearing the cache in logseq clears user configurations. This should not be the case. Cache and configuration should be separated. This will also help with adding support for XDG specifications. #3462

Some of the effected configurations:

  1. Zotero API key is lost.
  2. Developer mode is turned off.
  3. Although the date format in the config file is not changed, existing journal's date format is changed. (This can be fixed after re-index.)

Reproduce the Bug

  1. Clear cache
andelf commented 2 years ago

These items are saved in Browser's localStorage. Should be added to global settings.