• Skip to main content
  • Skip to primary sidebar

Technical Notes Of
Ehi Kioya

Technical Notes Of Ehi Kioya

  • Forums
  • About
  • Contact
MENUMENU
  • Blog Home
  • AWS, Azure, Cloud
  • Backend (Server-Side)
  • Frontend (Client-Side)
  • SharePoint
  • Tools & Resources
    • CM/IN Ruler
    • URL Decoder
    • Text Hasher
    • Word Count
    • IP Lookup
  • Linux & Servers
  • Zero Code Tech
  • WordPress
  • Musings
  • More
    Categories
    • Cloud
    • Server-Side
    • Front-End
    • SharePoint
    • Tools
    • Linux
    • Zero Code
    • WordPress
    • Musings
Home » SharePoint » Different Ways to Clear the SharePoint Designer Cache

Different Ways to Clear the SharePoint Designer Cache

Last updated on September 10th, 2020 at 01:16 pm by Ehi Kioya Leave a Comment

This article provides manual and programmatic methods of clearing the SharePoint designer cache for both SharePoint 2010 and 2013. Clearing the cache will remove any past connection history as well provide you a “clean slate” to work from. Note that the cache is not cleared even after doing a reinstall, so this really is the only way to clear it.

Some of the symptoms you may notice that indicate a need to clear the cache include:

  • Error message: “Cannot perform this operation. The file is no longer checked out or has been deleted.”
  • Missing code conditions inside SharePoint designer workflows

SharePoint also has some other caches that may often need to be cleared depending on what you’re working with. Like this one. Here, we’ll be focusing on SPD cache only.

Clearing the SharePoint Designer Cache Manaually

You essentially need to delete the contents of two windows folders…

  1. Close SharePoint designer if it is open
  2. Using Windows explorer, go to: %USERPROFILE%\AppData\Local\Microsoft\WebsiteCache
  3. Delete everythig inside that folder
  4. Now go to: %APPDATA%\Microsoft\Web Server Extensions\Cache
  5. Delete the contents of that folder as well

Your SharePoint designer cache is now cleared.

Completely Disable the SharePoint Designer Cache

If you find yourself needing to clear the cache too often, you may want to completely prevent SharePoint designer caching in the first place. To do that, open SharePoint designer and…

  1. Navigate to the “File” menu. Then go to Options >> General >> Application Options
  2. On the “General” tab, under the “General” heading, deselect “Cache site data across SharePoint Designer sessions”
  3. Completely Disable the SharePoint Designer Cache

  4. Press OK to save the changes

Going forward, SharePoint designer will not automatically cache any content.

Using PowerShell to Clear the Cache

For those who prefer using quick PowerShell commands or a PowerShell script, here’s the code you need:

Remove-Item "$($env:APPDATA)\Microsoft\Web Server Extensions\Cache\*" -recurse -force
Remove-Item "$($env:USERPROFILE)\AppData\Local\Microsoft\WebsiteCache\*" -recurse -force

You could just run those commands individually in PowerShell. But you may want to save the commands as a .ps1 script for future reference. When you run into a caching issue, make sure you close SharePoint Designer first. Then simply right click the .ps1 script file and run with PowerShell.

This slightly fancier version does the same thing but first checks if SharePoint designer is open, etc.

if(Get-Process 'SPDESIGN' -ea SilentlyContinue)
{
    "Please close SharePoint Designer before running this script!"
}
 
else
{
    if (Test-Path $Env:USERPROFILE"\AppData\Roaming\Microsoft\Web Server Extensions\Cache")
    {
         Remove-Item $Env:USERPROFILE"\AppData\Roaming\Microsoft\Web Server Extensions\Cache" -force -recurse -ErrorAction SilentlyContinue
    }
    if( test-path $Env:USERPROFILE"\AppData\Local\Microsoft\WebsiteCache")
    {
         Remove-Item $Env:USERPROFILE"\AppData\Local\Microsoft\WebsiteCache" -force -recurse -ErrorAction SilentlyContinue
    }
    Write-host "SharePoint Designer Cache Cleared!"
}

Found this article valuable? Want to show your appreciation? Here are some options:

  1. Spread the word! Use these buttons to share this link on your favorite social media sites.
  2. Help me share this on . . .

    • Facebook
    • Twitter
    • LinkedIn
    • Reddit
    • Tumblr
    • Pinterest
    • Pocket
    • Telegram
    • WhatsApp
    • Skype
  3. Sign up to join my audience and receive email notifications when I publish new content.
  4. Contribute by adding a comment using the comments section below.
  5. Follow me on Twitter, LinkedIn, and Facebook.

Related

Filed Under: SharePoint Tagged With: PowerShell, SharePoint, SharePoint Designer

About Ehi Kioya

I am a Toronto-based Software Engineer. I run this website as part hobby and part business.

To share your thoughts or get help with any of my posts, please drop a comment at the appropriate link.

You can contact me using the form on this page. I'm also on Twitter, LinkedIn, and Facebook.

Reader Interactions

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Primary Sidebar

26,223
Followers
Follow
30,000
Connections
Connect
14,641
Page Fans
Like

POPULAR   FORUM   TOPICS

  • How to find the title of a song without knowing the lyrics
  • Welcome Message
  • How To Change Or Remove The WordPress Login Error Message
  • The Art of Exploratory Data Analysis (Part 1)
  • Replacing The Default SQLite Database With PostgreSQL In Django
  • Getting Started with SQL: A Beginners Guide to Databases
  • How To Create Tooltips Using CSS3
  • How To Use A Custom Bootstrap Template With Laravel
  • SEO Basics – Crawling, Indexing And Ranking
  • How To Stay Relevant In The Tech Space
  • Recently   Popular   Posts   &   Pages
  • Actual Size Online Ruler Actual Size Online Ruler
    I created this page to measure your screen resolution and produce an online ruler of actual size. It's powered with JavaScript and HTML5.
  • Allowing Multiple RDP Sessions In Windows 10 Using The RDP Wrapper Library Allowing Multiple RDP Sessions In Windows 10 Using The RDP Wrapper Library
    This article explains how to bypass the single user remote desktop connection restriction on Windows 10 by using the RDP wrapper library.
  • WordPress Password Hash Generator WordPress Password Hash Generator
    With this WordPress Password Hash Generator, you can convert a password to its hash, and then set a new password directly in the database.
  • Forums
  • About
  • Contact

© 2021   ·   Ehi Kioya   ·   All Rights Reserved
Privacy Policy