Skip to content
Permalink
Browse files

[JENKINS-39213] Turns out to be really helpful if there is an ability…

… to clear internal caches
  • Loading branch information...
stephenc committed Oct 26, 2016
1 parent f3068bb commit f5bd1775c3d9b2bf982a73c7f84f2c9876baad4a
@@ -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;
}
@@ -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
@@ -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.
You can’t perform that action at this time.