From 15f8f0bb58a18be1d35209d4b3be48cd40b6aa77 Mon Sep 17 00:00:00 2001 From: Dadepo Aderemi Date: Sat, 18 Nov 2017 15:37:06 +0100 Subject: [PATCH] removed commented out code --- .../java/org/oruko/dictionary/DictionaryApplication.java | 8 -------- 1 file changed, 8 deletions(-) diff --git a/website/src/main/java/org/oruko/dictionary/DictionaryApplication.java b/website/src/main/java/org/oruko/dictionary/DictionaryApplication.java index 8ffe8912..6b5c8989 100644 --- a/website/src/main/java/org/oruko/dictionary/DictionaryApplication.java +++ b/website/src/main/java/org/oruko/dictionary/DictionaryApplication.java @@ -33,7 +33,6 @@ @SpringBootApplication @EnableCaching @EnableSwagger2 -//@EnableWebSecurity //switches off auto configuration for spring security public class DictionaryApplication extends WebMvcConfigurerAdapter { private final String LANG = "lang"; @@ -120,17 +119,10 @@ public net.sf.ehcache.CacheManager ecacheManager() { names.setEternal(false); names.setTimeToIdleSeconds(1800); -// CacheConfiguration nameCount = new CacheConfiguration(); -// nameCount.setName("nameCount"); -// nameCount.setMaxEntriesLocalHeap(0); -// nameCount.setEternal(false); -// nameCount.setTimeToIdleSeconds(1800); - net.sf.ehcache.config.Configuration config = new net.sf.ehcache.config.Configuration(); config.addCache(allNames); config.addCache(querySearchResult); config.addCache(names); - //config.addCache(nameCount); return net.sf.ehcache.CacheManager.newInstance(config); }