Windows 11 Explorer context menu: refresh thumbnail cache (D/LDC, -nogc).
Explore the docs »
Report Bug
·
Request Feature
A Windows 11 File Explorer context menu entry that refreshes the thumbnail cache for the current folder (or the whole cache when per-folder is not supported). Implemented in D (Dlang) with LDC, multithreading, and -nogc.
-
Context menu: Right-click a folder or inside a folder → "Refresh thumbnail cache".
-
Primary menu: Registered with
Position=Topso it can appear in the new Windows 11 primary right-click menu where supported; otherwise under "Show more options". -
Scope: Clears the central thumbnail cache (
thumbcache_*.db,iconcache_*.db) and, when a folder is selected, the legacythumbs.dbin that folder. Windows does not support per-folder invalidation of the central cache, so a full cache clear is performed. -
Explorer restart: Restarts Explorer so thumbnails are regenerated on next browse.
-
Windows 10/11 (x64)
-
LDC (LLVM D Compiler) recommended; DMD works for the
applicationconfiguration.
Using LDC (release, -nogc):
dub build --compiler=ldc2 -c release --build=release
# Output: RefreshThumbcache.exe at repo rootUsing DMD (debug/application):
dub build -c applicationOption A — PowerShell (no Inno Setup):
.\installer\Install.ps1
# Or with explicit exe path:
.\installer\Install.ps1 -ExePath ".\RefreshThumbcache.exe"Option B — Inno Setup (single .exe installer):
-
Build the app (see above).
-
Open
installer\setup.issin Inno Setup Compiler and build, or run:iscc installer\setup.iss. -
Run the generated setup from
dist\.
Install location: %APPDATA%\AMDphreak\RefreshThumbcache\.
-
Run
installer\Uninstall.ps1, or -
Use Windows Settings → Apps if you installed via the Inno Setup installer.
If gh repo create or git push fails with "refusing to allow an OAuth App to create or update workflow … without workflow scope", the GitHub CLI token is missing the workflow scope. Fix it by re-authorizing:
gh auth refresh -s workflow
git push -u origin mainThen push again; workflows will run and the installer job will produce the Inno Setup exe.
See CHANGELOG.md for release history.
Ryan Johnson — @amdphreak