Adopt plugin to ProjectCache.evict rename The rename was introduced by I946e8df456424de52f694cdcf6456b77d452ae4c which causes the projects not being reindexed on cache evictions. Change-Id: I64a83a981b7d4247f6d7309988f17a41a54c6e9a
diff --git a/src/main/java/com/googlesource/gerrit/plugins/simplesubmitrules/config/ConfigServlet.java b/src/main/java/com/googlesource/gerrit/plugins/simplesubmitrules/config/ConfigServlet.java index cb46c94..a663fd6 100644 --- a/src/main/java/com/googlesource/gerrit/plugins/simplesubmitrules/config/ConfigServlet.java +++ b/src/main/java/com/googlesource/gerrit/plugins/simplesubmitrules/config/ConfigServlet.java
@@ -88,7 +88,7 @@ ProjectConfig projectConfig = projectConfigFactory.read(md); configTranslator.applyTo(inConfig, projectConfig); projectConfig.commit(md); - projectCache.evict(projectName); + projectCache.evictAndReindex(projectName); } ProjectState projectState =