How To Clear Windows 7 Cache

From the technical point of view there are three types of caches in Windows 7, which you can flush easily – Memory Cache, DNS Cache, and Thumbnails Cache. Clearing the Memory Cache can free up some system memory, clearing the Thumbnail Cache can free up space in your hard disk, and clearing the DNS Cache can fix your internet connection problem.

You can also clear Internet Explorer 8 Cache, but it not part of Windows 7 by default in Europe.

Clearing DNS Cache

Type Command Prompt in Start Search, right-click on Command Prompt under Programs and select Run As Administrator.

administrator command prompt

Now, type ipconfig /flushdns and hit Enter.

Clear Windows 7 DNS

As you can see from the screenshot above, it will show a message that the DNS Resolver Cache has been successfully flushed.

Clearing Memory Cache

When your computer is running for quite some time, you will notice that it slows down due to idle processes. You can use this method to free up unused RAM and speed up your computer. It requires you to create a desktop shortcut and then open it to clear the memory cache.

First right-click anywhere on the desktop and select New > Shortcut.


new shortcut windows 7

Now enter the following line when asked for location of the shortcut and hit Next:

%windir%\system32\rundll32.exe advapi32.dll,ProcessIdleTasks

clear unused RAM Shortcut

Give it any name and hit Finish.

Clear Ram windows 7

Now open this newly created shortcut and you will notice a slightly better performance.

Clearing Thumbnails Cache

In order to clear thumbnail cache, right-click your primary disk partition (where Windows is installed) and open Properties dialog. Now, click Disk Cleanup to open Disk Cleanup dialog. Select the items you want to remove, along with Thumbnails to remove the thumbnail cache. Once done, Click OK followed by Delete files to delete selected items and remove thumbnail cache.  We have covered this topic in full details here.

Thumbnail

Enjoy!

Advertisement
  • GGTBod

    Will this work for Win 7 64bit?

    • Nakodari

      Yes.

      • http://profiles.google.com/icute822010 icute skullicious

        how to make it work on 64 bit, i try your solution and in the cmd prompt shows the system32 not the 64..

        • Pontus

          That’s because there isn’t any system64? -.-

          • LolFuQ

            Umm… Dont be rude you cunt

          • Nana

            %windir%syswow64

        • Conna Da Andason

          Thats because System32 is the default directory of command prompt .exe files and system configuration files. Get on your shit bro

        • bootlip

          lol

        • aditya Ghosh

          bcoz system 32 is system file. u cant find system 64.

          • Kneeko Constantino

            %windir%SysWOW64rundll32.exe advapi32.dll,ProcessIdleTasks should work on Win7 64-bit

            • Al Couvillion

              It does…

  • GGTBod

    Thanks, the main reason i was asking is that I had trid it and noticed very little difference on my RAM monitor, also noticed Win 7 is very RAm intensive

  • MIffy

    does this clear the Standby in the resource monitor?

  • GCflux

    Hi!! About Clearing Memory Cache, I got automatically the name rundll32.exe, that I changed in Clear Unesed RAM. Is it ok? After create the shortcort, I click to open it but nothing comes opened.. is that normal?
    How can see the effective improvement of the RAM? And if I want to eliminate all, should delete just the shortcort or something else?
    Cheers

    • Michael Parido

      Same question as GCflux.

  • HamRHead

    Same as GCflux and Michael Parido above–When I click on the desktop icon that I created, the little “hourglass” circle makes several revolutions and then quits. Nothing opens. Is anything happening?

  • Chris Quirke

    Another buffer that needs to be cleared, is files pending to be written to optical disk. It would be good if you added a how-to for that!

  • Rich

    I bought a new computer, Toshiba with Intel i3 M330 @ 2.13GHz and 4.00GB ram running Windows 7 x64 home. I upgraded to Win 7 Ultimate. I love this computer! However, when looking at several image files (.tif & .pdf plan drawings no larger than 1meg each) my system memory maxes out and the computer freezes. I have tried all of the solutions above and still have trouble viewing these files without problems. I actually go through all the steps several times a day. I notice that during system idle the memory usage is still running at 36% or above. Is that normal? How can I solve the problem with viewing image files?

    • Ken Latta

      Yes you can still need a pagefile with a well endowed (4g ram) machine. This is so an application can grab a large hunk of space for it’s purposes.
      But another thing may help more.
      If you have a spare usb memory stick or SD memory card (say 2 gig) plug that in and enable it for “ReadyBoost.”
      http://en.wikipedia.org/wiki/ReadyBoost

  • Loken

    Clearing the ram made my computer run slower is there something else I can do?

  • dani

    hello dear,
    I was downloaded an avi video from torrent, i was deleted it while age, now I’m downloading a new one and when i open the uncompleted using Gomplayer, the player show the deleted video somewhere in the timeline,
    I mean that how can I delete windows video cache?

    • Ahaa

      u obviously downloaded some porn, didnt u?

  • Spazz Wazz

    You can check how much is cached by opening Windows Task Manager and clicking on the ‘Performance’ tab. this should tell you if its done anything. :)

  • Stephanie Cummings

    Will the above tip help me with an iTunes update I’ve been having? It says on the troubleshooting site for apple to use this command with the error 3004: “dscacheutil -flushcache” but when I type that in the command prompt, it doesn’t recognize the command so I googled flush cache in windows 7 and this site came up first, hence, I followed all the above suggestions. But was this a waste of time for the problem I’m having?

    • BeCool

      Hi Steph, it’s a MacOs command not a Windows one.

  • balraj

    ya man thanks its so cool tips and actually i m feeling gud speed in my pc now
    i m also a pc or R&D lover and u guys do a fantastic job by helping us . I really apreciate ur help

  • Kaz

    Why can’t they just integrate these shortcuts automatically, it would save so much hassle!

    • Dejonn

      Because the average user has no clue. AND DON’T want a clue either

  • not cool

    didn’t do a damn thing for me… stop wasting space

  • Reo

    Thanks nigga this shit helped a lot :) Real Shit

  • Basshole

    Virus!

    Haha jk lol kthxbye

    Worked.

  • dirty

    that’s right!!  fag

  • Quiznos56

    I click on the shortcut nothing happened

    • Crockettman

      It runs a background process. Rest assured, it’s doing what it’s programmed to do.

  • Abadax

    Thanks man. I really appreciate it. Right now I can see the difference. Before I did this, every time I right clicked, it would have to think about it. On top of that, when I typed in firefox, it lagged behind my keystrokes. Neither of those happen any more.

  • aaa

    It won’t clear memory cache. It simply run some optimization routines which are normally run automatically while computer is idle.

  • http://www.facebook.com/profile.php?id=555913534 Ishraq Zubair

    You’re life savor! I was considering reinstalling Windows. This really helped me clear about 10 GBs of storage! thanks :D

  • gtg

    mine says file could not be found! NOW WHAT?????????

  • Mentor

    dont work nothing happen

  • vivek

    nothing happened….

  • anthony

    it really helped … thank you :)

  • upiz

    You need refresh and re-register afterward:
    ipconfig /registerdns

  • malik wasim

    thanks :)

  • sgt schultz

    crap, memory useage increased. Stop posting shit.

    • Your Master

      you are crap

      • Alan

        yeah my memory usage increased too, thanks for trying thuogh

  • Gonzalo

    Excellent, thanks!

  • Shaqueen

    Yo homy that shit be dope me pc be chillin afta dat yo.

  • Jhunn(Philippines)

    It’s fine for me to go through all this hassle because it is so fulfilling..
    Further more, the DNS cache trick worked like a charm..
    Thank you for this..

  • http://www.facebook.com/MountainValleyLandLLC Charles Roberts

    junk advise, shortcut doesn’t work!!

  • grim reaper

    This has been very helpful to me. Thanks very much for posting this information!

  • http://www.facebook.com/kent.maier.9 Kent Maier

    thank you so much for posting this. I had 28.3 GB of temporary files just “free loading” on my system drive. and my internet connection is just clear. plus i did the ram flush right after playing a game and my computer runs just like it just booted up. Your intructions were so easy to follow. again thank you so much

  • makesijoseph

    Thank you very much

  • The_Rhythmosaur

    Hello,

    Topic is Ram Cache Cleaning:

    I´m sure I did everything correctly since your guide is foolproof. However, after hitting the shortcut, I can watch the free ram DEcrease in the resource Manager from round about 900MB to Zero, and I cannot find out what exactly makes up the additional code that seems to be processed. Could you please make me understand and correct the situation?

  • Terada

    Hi Tried this several times and keep getting this error message. can you help please? I am not a young tech oriented person and have limited knowledge. Thanks.

    • sys administrator

      make sure it is spelt exactly to the screenshot including case! that message is because you have either a spelling or a letter case wrong.

  • Suzanne Bennett

    Excellent! Thank you! :)

    • Suzanne Bennett

      …well…I take that back. It worked for a minute. I watched one video all the way through, but now youtube videos stop after a minute or two again…

  • Rick S

    Do a system search for “thumbs.db” … windows tends to store these files in different places, and not always clear them .

  • ashish

    in my pc creed 3 isn’t running that properly..what should i do..??

  • bhug

    14.10.02
    W7 64b, on fresh boot the computer has about 800MB cached physical memory. In use of various programs that climbs to over 13GB cached memory (out of 16GB ddr3 installed [8GB x2]).
    Even after those programs are closed, W7 does NOT free up cached memory.
    Trying the %windir%sysWOW64rundll32.exe advapi32.dll,ProcessIdleTasks
    shortcut does not free up the indicated Physical Memory (Windows Task Manager/Performance), even trying the shortcut after selecting “Run as Administrator.”