I created custom actions from ribbon via this article - Deploying Custom Action to specific lists in SharePoint 2010 - which works fine.
But when I created a new project I copied from my last project and forgot to change path for the JS file, and deployed the project.
var scriptlink = site.UserCustomActions.Add();
scriptlink.Location = "ScriptLink";
scriptlink.ScriptSrc = "/_layouts/15/SharePointProject2/JavaScript2.js";
scriptlink.Update();
Now if I correct the path to the JS file SharePoint still tries to loads the script from the old path.
I have tried reseting IIS, but still SP gets the wrong file.
What can I do in future when I have that problem? I assume it is some cache but I don't know what delete and where.
I use SP2013 and VS 2013