Cache tăng tốc truy cập nhưng đôi khi gây lỗi, ngốn dung lượng, cần dọn định kỳ. 14 cách xóa cache trên Windows 11:
Cache là gì?
Cache (phát âm ka·shay) – bộ nhớ đệm lưu dữ liệu thường dùng để tải nhanh hơn. Phân biệt:
- Cache files: File ảnh, icon, shader... lưu trên ổ cứng.
- Cache memory (L1/L2/L3): Bộ nhớ CPU cực nhanh, nhỏ (KB-MB), không thể xóa thủ công.
Tại sao xóa cache?
- Cache hỏng → crash/app lỗi.
- Giải phóng dung lượng ổ cứng.
- Cải thiện hiệu năng khi cache quá lớn.
- Lấy phiên bản mới nhất web/app (cache cũ che phiên bản mới).
An toàn: Xóa cache an toàn – file non-essential, app/web sẽ tạo lại tự động.
14 cách xóa cache
1. Xóa file tạm %temp%
- Win + R →
%temp%→ Enter. - Ctrl + A → Delete → Skip file đang dùng.
2. Xóa Temporary Files qua Settings
- Win → Storage settings.
- Temporary Files → tick mục cần xóa (đọc mô tả) → Remove files → Continue.
3. Disk Cleanup (Công cụ tích hợp)
- Win → Disk Cleanup → chọn ổ.
- Tick: DirectX Shader Cache, Delivery Optimization Files, Windows error reports... → OK → Delete Files.
- Clean up system files → chọn ổ C → tick thêm: Windows Update Cleanup, Previous Windows installations... → OK.
4. Flush DNS (Xóa DNS cache, chống DNS poisoning)
- Win → cmd.
ipconfig /flushdns→ Enter.
5. Xóa Microsoft Store Cache
- Win + R →
wsreset.exe→ Enter. - Cửa sổ hiện ra tự đóng sau khi xong.
6. Xóa Browser Cache
Chrome:
- Ctrl + Shift + Delete.
- Time range → tick Cached images and files → Clear data.
Firefox:
- Ctrl + Shift + Delete.
- Time range → tick Cache → OK.
7. Xóa Location Cache
- Win + I → Privacy & Security → Location.
- Kéo xuống Location History → Clear.
8. Xóa Activity History
- Win + I → Privacy & Security.
- Clear activity history → Clear.
- Bỏ tick Store my activity history on this device nếu không muốn lưu.
9. Xóa Prefetch Files
- Win + R →
prefetch→ Enter. - Nếu mở thư mục: Ctrl + A → Delete.
Lưu ý: Prefetch giảm thời gian boot. Xóa có thể làm boot chậm lần đầu sau đó.
10. Xóa File Explorer Cache (Quick Access history)
- Mở File Explorer → 3 chấm → Options.
- Tab General → phần Privacy → Clear.
11. Xóa System Restore Cache (Xóa restore points)
- Win → Create a restore point (System Properties).
- Tab System Protection → Configure → Delete → Continue.
Cảnh báo: Mất khả năng khôi phục hệ thống. Chỉ làm khi chắc chắn.
12. Storage Sense – Tự động dọn cache định kỳ
- Win + I → System → Storage → Storage Sense.
- Bật Automatic User content cleanup.
- Cấu hình: Run Storage Sense (hàng ngày/tuần/tháng), xóa Recycle Bin (>30 ngày), xóa Downloads (>60 ngày không mở).
13. Xóa Clipboard Cache
- Win → Clipboard settings.
- Kéo xuống Clear clipboard data → Clear.
14. Xóa Display Cache (Registry)
- Win + R →
regedit. - Đến:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\GraphicsDrivers. - Tạo restore point trước.
- Xóa 3 key: Configuration, Connectivity, ScaleFactors.
- Khởi động lại.
FAQ
- Cache vs Cookie: Cache lưu file tĩnh (ảnh, HTML), Cookie lưu dữ liệu nhỏ (user, session, giỏ hàng).
- Đuôi file cache: Thường
.cache(không phải format chuẩn). - Mở file cache: Dùng tool đọc Snac-1.3 VDA hoặc web
fileproinfo.com. - Cache memory nhanh? Có – nhanh hơn RAM, gần CPU, chu kỳ clock rất thấp.
- Sau khi xóa browser cache: Web load chậm lần đầu, setting web bị reset, sau đó cache tái tạo.