如果您的图标显示为空白或看起来已损坏或未正确刷新,那么您的图标缓存数据库很可能在您的 Windows 11/10 PC 上已损坏。同样的事情也适用于Thumbnail。如果它们不能正确显示,那么它们可能已损坏。在这种情况下,您可能需要删除缓存文件以重建图标(Icon)缓存并清除缩略图(Thumbnail)缓存。
这篇文章将向您展示这些缓存文件的位置,以便您可以删除IconCache.db和 thumbcache.db 文件,以便在Windows 11/10图标(Icon)缓存并清除缩略图(Thumbnail)缓存。
在 Windows 11/10 中重建图标缓存
Icon Cache或IconCache.db是一个特殊的 数据库文件,Windows使用它来方便地保存每个图标的副本。当Windows需要绘制图标时,它使用缓存中的副本,而不是从原始应用程序文件中检索图标图像。这有助于使Windows更快地绘制图标。在Windows XP中情况(Windows XP)有所不同,在 Windows 7/8中也有所不同。从Windows 8.1开始,情况又发生了变化。在Windows 11/10中,您需要执行以下操作。
如果您需要在Windows 7/8图标缓存(Icon Cache),您需要执行以下操作:
- Open File Explorer > Folder Options > Views以显示隐藏的系统文件(Hidden System Files)。
- 接下来,转到 C:Users%username%AppDataLocal 文件夹
- 删除隐藏的IconCache.db文件。重启。
- 此操作将清除并重建图标缓存。
但这在Windows 11、Windows 10或Windows 8.1中还不够。您必须导航到以下文件夹:
C:\Users\%username%\AppData\Local\Microsoft\Windows\Explorer
在这里你会看到很多文件,如 iconcache_32.db、iconcache_48.db、iconcache_96.db、iconcache_256.db、iconcache_1024.db、iconcache_1280.db、iconcache_1600.db、iconcache_1920.db、iconcache_2560.db、iconcache_exif.db、iconcache_idx .db、iconcache_sr.db、iconcache_wide.dd、iconcache_wide_alternate.db 等。
将它们全部删除(Delete)以清除并重建Windows 10中的图标缓存。如果您能够删除其中的一些,您现在可以看到创建的名为IconcacheToDelete的新文件夹,当您重新启动计算机或重新启动Windows 文件资源管理器(Windows File Explorer)时,该文件夹将消失。
如果您发现无法删除这些文件,请执行以下操作。
首先,关闭所有打开的程序。接下来(Next),打开任务管理器(Task Manager),查找进程Windows Explorer,右键单击它并选择结束进程(End process)。接下来,从“文件(File)”菜单 > 选择“运行(Run)新任务”。键入cmd.exe,选中使用管理权限创建此任务(Create this task with administrative privileges)框,然后按 Enter。
这将打开一个提升的命令提示符窗口。
现在依次键入以下命令,然后按 Enter:
cd /d %userprofile%\AppData\Local\Microsoft\Windows\Explorer attrib –h iconcache_*.db del iconcache_*.db start explorer
这将在Windows 10(Windows 10)中重建您的图标缓存。
提示(TIP):了解如何阻止 Windows在每次关机、重新启动或启动时删除缩略图缓存。
Windows 11/10中清除缩略图(Thumbnail)缓存
Windows 缩略图缓存或 Thumbs.db 文件是Windows操作系统中的隐藏数据文件,其中包含小图像,当您在“缩略图”视图中查看文件夹时显示,而不是平铺、图标、列表或详细信息视图。Windows会保留所有图片、视频和文档缩略图的副本,以便在您打开文件夹时可以快速显示它们。在Windows XP中,您会看到这些“隐藏”文件 thumbs.db 文件散布在各处。在Windows Vista及更高版本中,缩略图 'thumbcache' 存储在C:\Users\Owner\AppData\Local\Microsoft Windows\Explorer - 这与存储图标缓存文件的位置相同。
如果要删除和清除缩略图(Thumbnail)缓存,则必须遵循与上述相同的过程,但最后,请使用以下命令:
cd /d %userprofile%\AppData\Local\Microsoft\Windows\Explorer
attrib –h
thumbcache_*.db
del thumbcache_*.db
start explorer
如果这对您有用并帮助您解决问题,请(Please)告诉我们。
Windows 10用户可能想要使用Thumbnail and Icon Cache Rebuilder,它可以让您一键清除和重建Thumbnail & Icon Cache。
如果您的桌面或资源管理器图标在启动Windows(Windows) PC时加载缓慢,您可能需要增加图标缓存大小并查看它是否对您有帮助。如果您的桌面图标加载缓慢,请参阅此帖子。
Rebuild Corrupt Icon Cache, Clear Thumbnail cache in Windows 11/10
If your icons appear blank or look corrupted or do not refresh correctly, when thеy should, then it is quite possible that yoυr icon cache database maу have becomе corrupted on your Windows 11/10 PC. The samе thing applies to Τhumbnails too. If thеy do not diѕplay correctly, then they may have become corrupted. In such a ѕcenario, you maу need to delete the cachе files in order to rebuіld the Icon cache and clear the Thumbnail cache.
This post will show you the location of these cache files so that you can delete IconCache.db and thumbcache.db files, in order to rebuild the Icon cache and clear the Thumbnail cache in Windows 11/10.
Rebuild Icon Cache in Windows 11/10
The Icon Cache or IconCache.db is a special database file that Windows utilizes to keep copies of each icon handy. When Windows needs to draw an icon, it uses the copy from the cache instead of retrieving the icon image from the original application file. This helps in making Windows draw the icons faster. Things were different in Windows XP, and they are different in Windows 7/8. Things changed again from Windows 8.1 onwards. In Windows 11/10, you need to do the following.
If you needed to rebuild the Icon Cache in Windows 7/8, you needed to do the following:
- Open File Explorer > Folder Options > Views to show Hidden System Files.
- Next, go to C:\Users\%username%\AppData\Local folder
- Delete the hidden IconCache.db file. Reboot.
- This action would purge and rebuild the icon cache.
But this is not enough in Windows 11, Windows 10 or Windows 8.1. You will have to navigate to the following folder:
C:\Users\%username%\AppData\Local\Microsoft\Windows\Explorer
Here you will see a lot of files like iconcache_32.db, iconcache_48.db, iconcache_96.db, iconcache_256.db, iconcache_1024.db, iconcache_1280.db, iconcache_1600.db, iconcache_1920.db, iconcache_2560.db, iconcache_exif.db, iconcache_idx.db, iconcache_sr.db, iconcache_wide.dd, iconcache_wide_alternate.db, etc.
Delete them all to purge and rebuild your icon cache in Windows 10. If you were to be able to delete some of them, you would now be able to see a new folder created named IconcacheToDelete, which will disappear when you reboot your computer or restart Windows File Explorer.
If you find that you are unable to delete these files, do the following.
First, close all open programs. Next, open Task Manager, look for the process Windows Explorer, right-click on it and select End process. Next, from the File menu > select Run new task. Type cmd.exe, check the Create this task with administrative privileges box and press Enter.
This will open an elevated command prompt window.
Now type the following commands one after the other and hit Enter:
cd /d %userprofile%\AppData\Local\Microsoft\Windows\Explorer attrib –h iconcache_*.db del iconcache_*.db start explorer
This will rebuild your icon cache in Windows 10.
TIP: See how you can stop Windows from deleting the Thumbnail cache on every shutdown, restart or boot.
Clear Thumbnail cache in Windows 11/10
Windows Thumbnail cache or Thumbs.db files are hidden data-files in the Windows operating system, which contain small images, displayed when you view a folder in “thumbnail” view, as opposed to tile, icon, list, or detail view. Windows keeps a copy of all your pictures, video and document thumbnails so that they can be displayed quickly when you open a folder. In Windows XP you see these ‘hidden’ files thumbs.db files scattered all over the place. In Windows Vista and later, the thumbnails ‘thumbcache’ are stored at C:\Users\Owner\AppData\Local\Microsoft Windows\Explorer – which is the same where the icon cache files are stored.
If you want to delete and clear the Thumbnail cache, you will have to follow the same procedure as mentioned above, but finally, use these commands:
cd /d %userprofile%\AppData\Local\Microsoft\Windows\Explorer
attrib –h
thumbcache_*.db
del thumbcache_*.db
start explorer
Please let us know if this worked for you and helped you resolve your problem.
Windows 10 users may want to use Thumbnail and Icon Cache Rebuilder, which lets you purge and rebuild Thumbnail & Icon Cache in a click.
If your desktop or explorer icons load slowly when they start the Windows PC, you may want to increase Icon Cache size and see if it helps you. See this post if your Desktops icons are slow to load.