Important note: Before clean NVIDIA Cache close all programs and application. (Google Chrome, Stable Diffusion, etc.). After cleaning NVIDIA Cache restart PC.
1.Open the Nvidia Control Panel > Manage 3D settings > Shader Cache Size - Disable.
2.Restart PC
3.Way 1:
Delete all files inside this folder manually -
%LOCALAPPDATA%\NVIDIA\OptixCache
%APPDATA%\NVIDIA\ComputeCache
%USERPROFILE%\AppData\LocalLow\NVIDIA\PerDriverVersion\DXCache
%LOCALAPPDATA%\NVIDIA\GLCache
3.Way 2:
Using automatic .bat file. Right click on .bat file - Run as administrator. (Bat file Include in Attachments in a zip archive. Directly upload .bat not work).
.Bat file commands:
@echo off
echo Deleting NVIDIA cache files...
rem Delete files in OptixCache
if exist "%LOCALAPPDATA%\NVIDIA\OptixCache" (
del /q "%LOCALAPPDATA%\NVIDIA\OptixCache\*.*"
echo Deleted files in OptixCache
) else (
echo OptixCache folder not found
)
rem Delete files in ComputeCache
if exist "%APPDATA%\NVIDIA\ComputeCache" (
del /q "%APPDATA%\NVIDIA\ComputeCache\*.*"
echo Deleted files in ComputeCache
) else (
echo ComputeCache folder not found
)
rem Delete files in DXCache
if exist "%USERPROFILE%\AppData\LocalLow\NVIDIA\PerDriverVersion\DXCache" (
del /q "%USERPROFILE%\AppData\LocalLow\NVIDIA\PerDriverVersion\DXCache\*.*"
echo Deleted files in DXCache
) else (
echo DXCache folder not found
)
rem Delete files in GLCache
if exist "%LOCALAPPDATA%\NVIDIA\GLCache" (
del /q "%LOCALAPPDATA%\NVIDIA\GLCache\*.*"
echo Deleted files in GLCache
) else (
echo GLCache folder not found
)
echo.
echo Cache deletion complete.
pause
4.Restart PC
5.Open the Nvidia Control Panel > Manage 3D settings > Shader Cache Size - Driver Default.
About the type of NVIDIA Cache -
OptixCache: Used by NVIDIA’s OptiX for ray tracing, storing compiled data for faster GPU rendering. (Autodesk Arnold Renderer, Blender Cycles)
ComputeCache: Caches computations for CUDA operations, optimizing performance in general-purpose GPU tasks. (TensorFlow and PyTorch)
DXCache: Stores DirectX shader data, enhancing performance in DirectX applications. (Cyberpunk 2077, Overwatch 2)
GLCache: Caches OpenGL shaders for faster OpenGL-based rendering. (Blender in OpenGL mode and Adobe Photoshop)