lunes, 30 de enero de 2012

SharePoint 2010 | Clear SharePoint Cache

 

SharePoint caches the content (Could be images, etc.) in two of its system folders.

The cache is composed of these 2 folders:

  • %APPDATA%\Microsoft\Web Server Extensions\Cache
  • %USERPROFILE%\AppData\Local\Microsoft\WebsiteCache

In order to clear the cache, simply delete the files in these two folders.

I even created a batch file for doing this, which allows you to automate this function either as a scheduled job or manually by clicking on the batch file.

========Script Start below===================
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”

========Script End========================

 

Fuente: http://blogs.msdn.com/b/varun_malhotra/

Más información:

Sharepoint Designer  web cache issue: http://urbandude.com/post/2007/04/02/Sharepoint-Designer-web-cache-issue-fix.aspx

http://blogs.msdn.com/b/spdsupport/archive/2008/07/03/how-to-fix-custom-list-forms-will-not-insert-or-show-up-on-the-design-surface-of-sharepoint-designer.aspx

No hay comentarios:

Publicar un comentario