in this post we will discuss how configuration cache clearing sharepoint 2019 is done in on-premise environment step by step. clearing configuration cache involves below steps
- Stop the sharepoint “SharePoint Timer Service (SPTimerV4)” “.
- Delete all files of type “XML Document” from “Config” folder.
- Take Back up of file “cache.ini” file.
- Edit the value present in the file “cache.ini” and save.
- Restart timer job “SharePoint Timer Service (SPTimerV4)“.
Stop timer job service SharePoint Timer Service (SPTimerV4)
first you need to stop the timer job service “sharepoint timer serivce (SPTimerV4)“. You can stop the timer service either directly opeining from services or you can use powershell command to stop sharepoiint timer service job.
Open “Run” from windows server or click button “Windows + R” to open “Run“.
identifty the timer job “SharePoint Timer Service (SPTimerV4)“. Right click on the timer job, click on “Stop“.
you can stop timer job “SharePoint Timer Service (SPTimerV4)” using powershell command as well. Open sharepoint timer services preoperties.
Open “Windows Powershell ISE” as an administrator and enter the command below to stop services.
Stop-Service -Name SPTimerV4
Navigate to sharepoint configuration cache location “C:\ProgramData\Microsoft\SharePoint\Config“. There will be one folder under which cache files will be there. click on that folder as per the screenshot below.
Delete all “XML Document” files present in that folder except “cache.ini“.
Open the file “cache.ini” and edit value to “1” and “Save” the file.
Restart the timer job now which will recreate the cache files. Run the below command so as to start sharepoint timer service.
Start-Service -Name SPTimerV4
Cache files will be recreated in the folder “Cache”.