Stuck on Loading cache

This Worked for me, I just reopened my vault and it seems to be working fine. I didn’t change the folder back.

For me, changing the name of the main vault worked perfectly. When I reopened the program, it did so quickly, and then I was able to load the vault as a folder in the usual way, with all the files in perfect condition. The day before, I had established many new links, modified several folders, etc. I think this might have been the cause, but I’m not sure.

1 Like

This worked for me:

  1. I deleted those folders:
    Cache
    Code Cache
    DawnCache
    GPUCache
    IndexedDB
  2. and also disabled Add to Graph in the Fontmatter links plugin.

It now opens in about a second after getting to a minute or so. Fingers crossed this keeps up.

5 Likes

That worked for me as well. It had to re-index everything but when I have 20,000+ notes I’m not surprised.

2 Likes

Yeah this is an issue about frontmatter links plugin, just disable it and restart will work.

Issue here Weird cache and indexing vault · Issue #18 · Trikzon/obsidian-frontmatter-links (github.com)

The following steps resolved the issue for me on a Windows system:

  1. Within the vault, rename the .obsidian folder to .obsidian_tmp. in your vault
  2. Either rename or remove the entire Obsidian directory located in \AppData\Roaming.
  3. Reinstall Obsidian using the installer.
  4. Open Obsidian; it should launch successfully.
  5. Delete the newly created .obsidian folder and rename your old .obsidian_tmp back to .obsidian. in your vault
1 Like

this worked for me on mac (using rm -R ~/Library/Application\ Support/obsidian to delete the entire Obsidian directory)

Just had this problem,don’t have frontmatter links plugin installed though . Luckily renaming the $HOME/.config/obsidian folder and re-opening the vault fixed it for me.
Comparing the old config folder with auto-generated one, two files are massive in the old one

  1. TransportSecurity
  2. Network Persistence State.

FOUND IT, finally.

Frontmatter Links plugin was causing the issue for me as well, just unticked the “Add to graph” option, and the “Loading cache” just disappeared, FINALLY.

Regarding the time, it took 20 seconds to me to load cache, on an M2 Macbook Air 8gb of RAM, and I only had ~2000 notes, so I guess that if you can’t even use Obsidian, move temporarly your notes outside of your vault in order to access the settings.

1 Like

I had the same problem, the thing that I did was really simple. Moved the vault to another folder closed the obsidian and opened it again and everything was working find. I got the problem since I accidentally moved a JavaScript code base with a large node_modules folder into my vault and I think indexing for a large node_modules folder is damn heavy lift for obsidian.

1 Like

Many many thanks. This absolutely helps. :+1:t3:

1 Like

It works! Thank you so much :smile:

Background: @Win 11 I meet this problem after I tried to copy a large directory with many small files into the Vault.

I Solved it by following steps :

  1. Uninstall Obsidian from the system. Then Restart the computer.
  2. Use the Everything search any ‘obsidian’ cache-like files and delete them.
  3. Use the Huorong Tool to clear up system’s rubbish… (Maybe this is unnecessary, but I just cleared it up.)
  4. Reinstall obsidian.

:slight_smile: Hope it helps.

Apparently, some node modules folders are so big that they create singularities, causing bugs in Obsidian.

I recommend deleting the Application Support folder of Obsidian and reinstalling it."

For anyone coming from the internet who wants another solution that Just Works:

Remove Vault From Opener List

While the vault in question is stalled, Shift+Click the Obsidian icon (or Mac: File → Open Vault) to open the vault opener. Open the Sandbox Vault and close the stalled vault. Open the vault opener again and you should be able to remove the stalled vault from the list. This cleanses the cache on Obsidian’s side without moving or deleting any files you may care about

Once done, re-add the Vault. If you use the default config folder (.obsidian) and the problem lies with a plugin, the problem will reappear and you know to rename your config folder and patch in your plugins and settings until you find a culprit causing it to freeze. If you use a different config folder name, it will reset to using .obsidian and you can start afresh.

4 Likes

Tuesday, May 21, 2024 07:38 This solution still works on Linux.

Thank you very much, using this method successfully solved my problem of my caching is loading a century everytime :>!!!

Today I found an answer to this issue.

While Obsidian is terminated, remove the ~/Library/Application Support/obsidian/IndexedDB directory (send to recycle bin). This folder be re-builts upon re-start next time.


Below is my previous answer on this one:

What worked for me on Mac was to rename the Vault folder (Thanks @cs-mshah !).

What I tried (and didn’t succeed):

  • Renaming the plugins folder
  • Removing the .obsidian config folder altogether
  • Removing the cache folder (~/Library/Application Support/obsidian/Cache/Cache_Data/)
  • Restarting Obsidian
  • Restarting the Macbook

When this problem happened, I was working on the same files inside Obsidian through VS Code. There were Markdown files and PDF files opened in the Obsidian. I was working on Markdown and some Python/Bash scripts on VS Code.

On restart after folder renaming I found out Excalidraw and Better PDF plugins were pending upgrades, which I completed without issues as well.

I would really appreciate if there are any tooling to dig more into the issue to find where this is coming from. Ideally to help team get to the bottom of the matter to effectively fix it.

Update: I was able to consistently re-produce this by moving around a large (1.8Gb, as it has Qt5 installed) directory (this directory has nothing related to Obsidian, it is a Python venv - virtual environment - directory). If I move its position to another within the vault, even though it has nothing I edit in Obsidian, after this change Obsidian get stuck at the “loading cache …” screen as shown in @Neolex’s screenshot in this thread’s question.

In my Mac, when I uninstalled Omnisearch, everything went back to normal.

Yes, uninstallation needed, not just disable it.

BTW, omnisearch is a very good plugin!

This is a life saver!

I’ve tried:

  • reinstall obsidian
  • delete .obsidian folder
  • rename *.json
  • delete cache in Application Support

But only renaming my vault(which means I removed it from the default opening list of obsidian) made everything normal again!