Prevent Windows 10 From Deleting Thumbnail Cache

In Windows 10, File Explorer is able to show small previews for image and video files you have stored on your disk drive. To speed up this process, it uses a cache file hidden in the user profile directory. When a file is cached, File Explorer reuses the thumbnail from the cache to show it instantly. Some users have noticed that Windows 10 deletes the thumbnail cache automatically.


When this happens, File Explorer becomes terribly slow because it takes time again to re-generate the thumbnail for every file and cache it, so the process takes a lot of time and creates a notable CPU load for no reason. This is very unfortunate when you are browsing a folder which contains lots of images.

By default, Windows 10 stores the thumbnail cache in *.db files under the following folder:

C:\Users\you user name\AppData\Local\Microsoft\Windows\Explorer

Windows 10 Thumbnail Cache

Why Windows 10 is deleting the thumbnail cache

Starting with Windows 10 Fall Creators Update, the operating system keeps deleting the thumbnail cache after a restart or a shutdown, so File Explorer has to recreate the thumbnails again for your folders with images.

This happens because of the updated Automatic Maintenance feature. As you may already know, Windows 10 runs a number of maintenance tasks automatically. When enabled, it performs various actions like app updates, Windows updates, security scans and many other things. By default, Automatic Maintenance is set to wake up your PC and run maintenance tasks at 2 AM.

One of the tasks removes temporary files in your %TEMP% directory, temporary Internet files, old driver versions, and the thumbnail cache. It is called "SilentCleanup" and launches the Disk Cleanup tool with a special command line argument, /autoclean. This makes the cleamgr.exe tool read the cleanup presets in the Registry. For every enabled preset, the app performs cleanup on the system drive.Windows 10 Disk Cleanup Task

Luckily, it is easy to exclude the thumbnail cache from the cleanup process. This can be done with a simple Registry tweak.

Prevent Windows 10 from deleting the thumbnail cache

To prevent Windows 10 from deleting the thumbnail cache, do the following.

  1. Open the Registry Editor app.
  2. Go to the following Registry key.
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\Thumbnail Cache

    See how to go to a Registry key with one click.

  3. On the right, modify or create a new 32-Bit DWORD value Autorun.
    Note: Even if you are running 64-bit Windows you must still create a 32-bit DWORD value.
    Set its value data to 0.Stop Windows 10 From Deleting Thumbnail Cache
  4. If you are running a 64-bit Windows version, you must again set the Autorun value to 0 under another Registry key
    HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\Thumbnail Cache
  5. Restart Windows 10.

Tip: This way, you can exclude other caches and files from being removed by Automatic Maintenance.

To save your time, you can download the following Registry files.

Download Registry Files

Use them to stop Windows 10 from deleting the thumbnail cache or any other locations that you don't want Windows to clean up automatically. The undo tweak is included.

Finally, you can use Winaero Tweaker. To prevent Windows 10 from deleting the thumbnail cache, enable this option:

Winaero Tweaker 0.10 Thumbnail Cache
You can download the app here: Download Winaero Tweaker.

Articles of interest:

That's it.

7 thoughts on “Prevent Windows 10 From Deleting Thumbnail Cache

  1. MDJ

    A great advise! I’ve been thinking for a long time now that it’s time to reinstall Windows ’cause everything’s loading so slow.

    Reply
    1. Sergey Tkachenko Post author

      I’ve resinstall Windows 10 today for the performance reason too :)

      Reply
  2. throkr

    Thanks, Sergey, for the registry files.
    Any chance you include this tweak in a future update of Winaero Tweaker ?

    Reply
    1. Sergey Tkachenko Post author

      I will include.

      Reply
  3. Bob

    Awesome! This should work for Windows 7 and Windows 8.1 as well. Hoping to see this in Winaero Tweaker :)

    Reply
  4. bfoos

    This is included in Winaero Tweaker 0.14.0.0 and works fine on x86 systems. However, on x64 systems it does not change the Autorun value at
    “HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\Thumbnail Cache”

    Perhaps you can either add an architecture detection routine the app so it can load proper tweaks when needed or maybe even just another check box or change them both to buttons one for 32-bit and one for 64-bit.

    Reply
    1. Sergey Tkachenko Post author

      I will fix it. Thank you.

      Reply

Leave a Reply

Your email address will not be published. Required fields are marked *