Home > SharePoint > Clear SharePoint Configuration Cache

Clear SharePoint Configuration Cache

SharePoint stores some of the configuration in a cache on the SharePoint servers instead of makings calls to SQL Server (Config DB) every time, this is good for performance. But sometimes, this cache might have old or corrupted data which might cause timer jobs to fail. This happened to me when we changed SharePoint service accounts and deleted accounts in AD after disabling them. SharePoint still had the old service accounts in the configuration cache and this caused the farm to shut down, for more on that, read here. This issue was fixed by clearing the SharePoint configuration cache.

To clear the cache, follow the steps below

Note: A big disclaimer before you even proceed to do this, a word of caution. This operation will break your farm, if you delete the “GUID folder” or the “Cache.ini file”. Follow the steps carefully or refer to the MSDN article I posted below.

  1. On all Servers in the farm, stop the Windows SharePoint Services Timer service (OWSTIMER.EXE). To do this go to the Services Console, right click on Windows SharePoint Services Timer service and click stop.
  2. After this go the SharePoint Server running Indexing Server and navigate to “System Drive\Documents and Settings\All Users\Application Data\Microsoft\SharePoint\Config\GUID” in case of Windows Server 2003 or “System Drive\ProgramData\Microsoft\SharePoint\Config\GUID” in Windows Sever 2008.
  3. In the folder there is single “cache.ini” & rest all are XML files. Delete all the XML files except for the “Cache.ini file”, make sure you do not delete the “cache.ini”. This is very important, do not even delete the whole GUID folder too, this is also very important. I repeat do not delete the GUID folder or the cache.ini file!
  4. Now open the “cache.ini” file and note down the number. Clear the number and type in 1.
  5. Click save and close the “Cache.ini” file.
  6. Now start the Windows SharePoint Services Timer Service on the Indexing Server from the services console.
  7. Now, you will see all XML files being generated again.
  8. Open the Cache.ini and you will see same the number, as you noted down before.
  9. Now repeat steps 2-8 on all queries servers followed by application/web servers.

Refer the following articles if you need more information

MSDN Article

Joe Rodgers Blog

As Mr. Rodgers says, clearing the cache will also fix any PSCONFIG errors too.

\nindsappsdev4\c$\Documents and Settings\All Users\Application Data\Microsoft\SharePoint\Config\4029f56a-816c-4874-9bd0-cfce7739cf19
About these ads
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

%d bloggers like this: