Clearing the Configuration Cache for SharePoint
Clearing the Configuration Cache for SharePoint
Perform the below steps on all the servers in the farm.
1. Stop the Timer service
Start -> services.msc -> SharePoint Timer Service (SPTimerV4) -> Stop
2. Browse to %SystemDrive%\ProgramData\Microsoft\SharePoint\Config\GUID
Note: The Program Data folder is a hidden file
There could be more than 2 folders in this location.
3. Open the folder named as GUID’s with ‘-’ (dashed filename for the folder).
Example - 1f8c67d2-2cd9-4196-ab1a-d1a2daed2aa7
4. Arrange the files by Type. You would find few xml files and a file named cache.ini.
5. Delete all files except cache.ini (DO NOT DELETE THIS FILE - cache.ini)
6. Reset cache.ini (If you open this file, you will find a number like this – 3400261. Change the value in cache.ini to 1)
7. Start the Timer service
Start -> services.msc -> SharePoint Timer Service (SPTimerV4) -> Start.
8. Note: The file system cache is re-created after you perform this procedure. Make sure that you perform this procedure on all servers in the server farm.
9. Make sure that the Cache.ini file in the GUID folder now contains its previous value. For example, make sure that the value of the Cache.ini file is not 1.
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
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.
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)
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
%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
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.
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.
Comments
Post a Comment