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); }