Wednesday, May 4, 2011

Sharepoint Designer 2010 – Removing Web Cache.

By Omar L.

Sometimes when we are working with SharePoint Designer 2010, some files are shown as “checked out” when we don’t have them clearly in that status. That generates conflicts in the source control and versioning.


This common problem can cause waste of time and losses of code.


The problem lies in the "local web cache.”

Solution.

With the following script in CMD, I will show how to solve this problem quickly. Which we will save as a file type .bat

1. Open Notepad
2. Copy the following script.

cd "%APPDATA%\Microsoft\Web Server Extensions\Cache"
del *.web /S /Q "%APPDATA%\Microsoft\Web Server Extensions\Cache"
cd "%USERPROFILE%\AppData\Local\Microsoft\WebsiteCache\"
rmdir /S /Q "%USERPROFILE%\AppData\Local\Microsoft\WebsiteCache\."
mkdir "%USERPROFILE%\AppData\Local\Microsoft\WebsiteCache"
dir "%APPDATA%\Microsoft\Web Server Extensions\Cache"
dir "%USERPROFILE%\AppData\Local\Microsoft\WebsiteCache"
pause

3. Save it as .bat
4. Run the .bat

1OL

And with this we remove the local web cache in our Sharepoint Desinger 2010.

I hope you find this small tutorial helpful.

Regards.

No comments:

Post a Comment