Lost entire graph after clearing cache

I have been using Logseq for about 6 months. My graph is located at: C:\Users\OneDrive\Documents\Notes\Logseq

It contained many journal entries and pages. The computer has been updated and rebooted multiple times, and OneDrive has been syncing continuously.

Yesterday I went to Logseq > Settings > Advanced and clicked “Clear” under “Clear cache.” The warning message states that open graphs would be discarded and unsaved changes would be lost. I did not expect this to affect saved files.

After clearing the cache, my entire graph became empty. All notes are gone.

Since the graph is stored inside OneDrive, I attempted to restore my OneDrive to the previous day. That did not help. I also tried restoring from a week earlier, same result. The Logseq folder remains empty.

One detail: in one older backup I found the very first test page I ever created, but nothing else. This makes me unsure whether OneDrive ever properly synced the .md files. However, it must have synced at least once.

I left OneDrive untouched for about 12 hours to ensure full syncing, but no files reappeared.

I also searched my system and found these folders:

C:\Users.logseq
C:\Users\AppData\Roaming\Logseq
C:\Users\AppData\Local\Logseq

None of them contain my notes.

Has anyone experienced something similar after clearing the cache? Is there any other location where Logseq might have stored the markdown files? Any recovery suggestions would be appreciated.

The signs point to your data being stored in a different location than your remembered. Because cache clearing doesn’t delete notes in my experience, and OneDrive should be able to show you which files were deleted and let you restore them.

My only suggestion is to think back to when you created the graph. Did your use cloud file storage way that time? Which device were you using? Imagine setting up a new graph at that time. When prompted, where do you save it?

Excuse me for banality of my question but have you check the path in “All graphs” page?