To clear off all the cache used by SharePoint Designer

by 07:00 0 comments

Introduction:

This is a quick tutorial covering how to clear your SPD 2013 Cache. That is handy, especially when working with SPD 2010 and SPD 2013.  Clearing the cache will remove any of your past connection history as well provide you a "clean slate" to work from.  The cache is not even cleared after doing a reinstall, so this really is the only way to clear it.

Versioning with check-in/out are great but not always preferred, and certainly not infallible. As I learned on a project a few years ago that recently bit me again when my new machine was not similarly configured, SharePoint Designer has a dirty little habit of caching files, including say the XML/XSLT, JS and CSS you might be working with on your site.

No need to fret though; buried in the settings of each version is a toggle that will ensure SPD never sets you back by loading a cached file.


 

Procedure:
  1. Close SPD if it is open 
  2. Open My Computer. Click the address bar 
  3. Paste in: %USERPROFILE%\AppData\Local\Microsoft\WebsiteCache 
  4. Delete everything within this location. 
  5. Click the address bar. 
  6. Paste in: %APPDATA%\Microsoft\Web Server Extensions\Cache 
  7. Delete everything in this location.
  8. Open SharePoint Designer, Navigate to the "File" menu then select "Options" -> "General" -> "Application Options".
  9. On the "General" tab, under the "General" heading, uncheck "Cache site data across SharePoint Designer sessions".
Here's a batch file that I use to quickly clear anything that SharePoint Designer might have cached locally.
cd "%appdata%\Microsoft\Web Server Extensions\Cache"
del *.web /S /Q "%appdata%\Microsoft\Web Server Extensions\Cache"
dir "%appdata%\Microsoft\Web Server Extensions\Cache"
@echo off
echo Cache
is cleared (you can close this) If you want to be very thorough:
pause
cd "%USERPROFILE%\AppData\Local\Microsoft\WebsiteCache\"
rmdir /S /Q "%USERPROFILE%\AppData\Local\Microsoft\WebsiteCache\."
mkdir "%USERPROFILE%\AppData\Local\Microsoft\WebsiteCache"
dir "%USERPROFILE%\AppData\Local\Microsoft\WebsiteCache"
ECHO:All done!
pause
There's 2 parts to it: the first part sometimes solves my SPD issues, the second part will always clear it out, but it will also clear out all the history of what sites I've connected to.

These are quick couple of ways for clearing your cache and to hopefully resolve SharePoint Designer anomalies that present themselves from time to time.
Hope this post helps you all.

Unknown

Developer

I have been working on SharePoint since October 2012 and started developing web applications on SharePoint. I enjoy transforming business requirements and processes into SharePoint solutions, improving communication, productivity and efficiency.

0 comments:

Post a Comment