How to recover data after "clear cache"

When you create a new graph in Logseq, you store it in a folder on your file system (you have to select it when you create the graph). That’s the folder @Aryan was referring to. You should click “Add graph” from the left sidebar and then select the folder where you have your graph stored.