Navigation Menu

Skip to content

Commit

Permalink
[JENKINS-39213] Turns out to be really helpful if there is an ability…
Browse files Browse the repository at this point in the history
… to clear internal caches
  • Loading branch information
stephenc committed Oct 26, 2016
1 parent f3068bb commit f5bd177
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
Expand Up @@ -712,6 +712,9 @@ public void delete() throws IOException, InterruptedException {

@Override
public synchronized void save() throws IOException {
if (folderViews != null) {
folderViews.invalidateCaches();
}
if (BulkChange.contains(this)) {
return;
}
Expand Down
Expand Up @@ -30,6 +30,8 @@
import hudson.model.View;
import hudson.views.ViewsTabBar;
import java.util.List;
import org.kohsuke.stapler.StaplerRequest;
import org.kohsuke.stapler.StaplerResponse;

/**
* Responsible for holding the view configuration of an {@link AbstractFolder}. Each {@link AbstractFolder} concrete
Expand Down Expand Up @@ -126,4 +128,8 @@ public boolean isTabBarModifiable() {
return true;
}

/**
* Called by {@link AbstractFolder#save()} to signal that the view holder should clear any internal state caches.
*/
public void invalidateCaches() {}
}

0 comments on commit f5bd177

Please sign in to comment.