mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-16 02:06:18 +01:00
clear ui cache when backend changes
This commit is contained in:
@@ -80,12 +80,15 @@ public class CachedViewableResource extends ViewableResource
|
|||||||
* @param cacheName
|
* @param cacheName
|
||||||
*/
|
*/
|
||||||
public CachedViewableResource(ServletContext context, PluginBackend backend,
|
public CachedViewableResource(ServletContext context, PluginBackend backend,
|
||||||
BackendConfiguration configuration,
|
BackendConfiguration configuration, CacheManager cacheManager,
|
||||||
CacheManager cacheManager, String cacheName)
|
String cacheName)
|
||||||
{
|
{
|
||||||
super(context, configuration);
|
super(context, configuration);
|
||||||
this.cacheName = cacheName;
|
this.cacheName = cacheName;
|
||||||
this.cache = cacheManager.getCache(cacheName);
|
this.cache = cacheManager.getCache(cacheName);
|
||||||
|
|
||||||
|
// register backend listener
|
||||||
|
backend.addListener(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
//~--- methods --------------------------------------------------------------
|
//~--- methods --------------------------------------------------------------
|
||||||
|
|||||||
Reference in New Issue
Block a user