Clear SharePoint cache

It may be necessary to clear the SharePoint cache, depending on the circumstance and symptoms such as unexpected results with timer jobs may occur.

Clearing the SharePoint cache can be summaried by the following 4 steps:

1. Stop the Timer service on all servers in the farm

2. Backup the Cache.ini file on all servers in the farm

3. Delete XML files on all servers in the farm

4. Start the Timer service on all servers in the farm

The steps in detail:

1. Stop the Timer service on all servers in the farm

1. To stop the timer service via PowerShell:
Stop-Service SPTimerV4

2. To stop the timer service via the Services console.
To do this, follow these steps:
a. Click Start, point to Administrative Tools, and then click Services.
b. Right-click SharePoint 2010 Timer, and then click Stop.

2. Backup the Cache.ini file on all servers in the farm

1. On the computer that is running Microsoft SharePoint Server 2010 and on which the Central Administration site is hosted, click Start, click Run, type explorer, and then press ENTER
2. In Windows Explorer, locate and then double-click the following folder:
%SystemDrive%\ProgramData\Microsoft\SharePoint\Config\ <GUID>
1. The GUID placeholder specifies the GUID folder. There may be more than one of these.
2. The ProgramData folder may be hidden. Modify the view settings in the Folder Options.
3. Back up the Cache.ini file. (Make a copy of it)

3. Delete XML files on all servers in the farm

1. Go to the GUID folder
%SystemDrive%\ProgramData\Microsoft\SharePoint\Config\ <GUID>
2. Delete all the XML configuration and TMP files in the GUID folder (DO NOT DELETE THE CONFIG.INI FILE).
a. When you empty the configuration cache in the GUID folder, make sure that you do NOT delete the GUID folder and the Cache.ini file that is located in the GUID folder.
3. Double-click the Cache.ini file
4. On the Edit menu, click Select All
5. On the Edit menu, click Delete
6. Type 1, and then click Save on the File menu. (Basically when you are done, the only text in the config.ini file should be the number 1)
7. On the File menu, click Exit

4. Start the Timer service on all servers in the farm

1. To start the timer service via PowerShell:
Start-Service SPTimerV4

2. To start the timer service via the Services console.
To do this, follow these steps:
a. Click Start, point to Administrative Tools, and then click Services.
b. Right-click SharePoint 2010 Timer, and then click Start.
c. Close the Services console.

One thought on “Clear SharePoint cache

Leave a Reply

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