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

Kai Reinhard
14.35.2018 9dd2e96f71e5be99337af45d4ff9e039dd2c1098
Button clear all caches works now.
3 files modified
6 ■■■■ changed files
borgbutler-core/src/main/java/de/micromata/borgbutler/cache/ButlerCache.java 2 ●●● patch | view | raw | blame | history
borgbutler-server/src/main/java/de/micromata/borgbutler/server/rest/ConfigurationRest.java 2 ●●● patch | view | raw | blame | history
borgbutler-webapp/src/components/views/config/ConfigurationServerTab.jsx 2 ●●● patch | view | raw | blame | history
borgbutler-core/src/main/java/de/micromata/borgbutler/cache/ButlerCache.java
@@ -63,7 +63,7 @@
        return repositories;
    }
    public void clearAllCacheAccess(){
    public void clearAllCaches(){
        log.info("Clearing repositories cache (with list of archives)...");
        this.repoListCacheAccess.clear();
        clearRepoInfoCacheAccess();
borgbutler-server/src/main/java/de/micromata/borgbutler/server/rest/ConfigurationRest.java
@@ -94,7 +94,7 @@
    @Produces(MediaType.APPLICATION_JSON)
    public String clearAllCaches() {
        log.info("Clear all caches called...");
        ButlerCache.getInstance().clearRepoInfoCacheAccess();
        ButlerCache.getInstance().clearAllCaches();
        return "OK";
    }
}
borgbutler-webapp/src/components/views/config/ConfigurationServerTab.jsx
@@ -180,7 +180,7 @@
        return (
            <form>
                <FormLabelField>
                    <FormButton id={'clearCahces'} onClick={this.onClearCaches}> Clear all caches
                    <FormButton id={'clearAllCaches'} onClick={this.onClearAllCaches}> Clear all caches
                    </FormButton>
                </FormLabelField>
                <FormLabelField>