# Plugin scan cache

How Zene Studio finds plugins, what the scan cache is, and how quarantine works.

Source: https://zenestudio.org/docs/plugins/scan-cache

Markdown version of the Zene Studio page at https://zenestudio.org/docs/plugins/scan-cache. For a map of the whole site, see
https://zenestudio.org/llms.txt.

---
Zene Studio discovers plugins by scanning the directories you configure, and it remembers what it
found in a **scan cache**. Understanding the cache is the difference between "my plugin is broken"
and "my plugin is not being scanned".

## Why a cache exists

Scanning plugin directories means loading shared libraries and asking them to describe themselves.
That is slow, sometimes very slow on a large library. A single misbehaving plugin can also hang
the scan. So results are cached to disk.

## What it is not (yet)

:::warning
The scan cache is a **JSON data layer, not a GUI**. Quarantining a plugin means **hand-writing an
entry in the cache file**. There is no window for it, and there is no button.
:::

This is one of the clearest gaps in the alpha. It is also a good first contribution if you want to
help: the data model exists and works; only the interface around it is missing.

## Common symptoms

| Symptom | Most likely cause |
| --- | --- |
| A plugin you installed does not appear | Its directory is not in your scan paths, or the cache predates it |
| A plugin appears but crashes on load | It is quarantined, or it genuinely crashes |
| Plugins vanished after a restart | The cache was invalidated; rescan |

## Rescanning

Rescanning rebuilds the cache from the current scan paths. It is safe to do at any time: it is a
read of your plugin directories, not a modification of anything else.

Just installed a plugin and it is not showing up? Try a rescan first, before anything more
invasive.

## Quarantine

Quarantine removes a plugin from consideration without deleting it. Because there is no GUI, it is
done by editing the cache file directly:

1. Find the cache file in your Zene Studio configuration directory.
2. Find the entry for the plugin.
3. Mark it quarantined and save.

:::note
Quarantine is a workaround for a plugin that crashes the scanner. It is not a fix. If you quarantine
something, please
[file an issue](https://github.com/KRUZZZZY/zene-studio/issues/new/choose) so the actual crash gets
looked at.
:::

## Forward compatibility

The cache is versioned. If you move between builds that expect different cache layouts, the cache is
discarded and rebuilt, never misinterpreted. If plugins mysteriously disappear after an upgrade,
this is why — and a rescan fixes it.