mirror of https://github.com/micromata/borgbackup-butler.git

Kai Reinhard
14.33.2018 6a1a04156c341f59e3f86462ae974eb3e3411784
borgbutler-server/src/main/java/de/micromata/borgbutler/server/rest/ConfigurationRest.java
@@ -1,5 +1,6 @@
package de.micromata.borgbutler.server.rest;
import de.micromata.borgbutler.cache.ButlerCache;
import de.micromata.borgbutler.json.JsonUtils;
import de.micromata.borgbutler.server.ServerConfiguration;
import de.micromata.borgbutler.server.ServerConfigurationHandler;
@@ -84,4 +85,16 @@
        }
        return getConfig(false);
    }
    /**
     * Resets the settings to default values (deletes all settings).
     */
    @GET
    @Path("clearAllCaches")
    @Produces(MediaType.APPLICATION_JSON)
    public String clearAllCaches() {
        log.info("Clear all caches called...");
        ButlerCache.getInstance().clearRepoInfoCacheAccess();
        return "OK";
    }
}