From 04f0192a1bf14d0303d19b48bbd572122169fb54 Mon Sep 17 00:00:00 2001 From: "michele.artini" Date: Fri, 16 Dec 2022 15:45:06 +0100 Subject: [PATCH] cache --- .../src/main/java/eu/dnetlib/openaire/dsm/DsmService.java | 2 ++ .../src/main/resources/static/vocs/editor.html | 1 - libs/dnet-is-common/TODO.txt | 4 ---- 3 files changed, 2 insertions(+), 5 deletions(-) delete mode 100644 libs/dnet-is-common/TODO.txt diff --git a/apps/dnet-is-application/src/main/java/eu/dnetlib/openaire/dsm/DsmService.java b/apps/dnet-is-application/src/main/java/eu/dnetlib/openaire/dsm/DsmService.java index 89a1adcd..30692dde 100644 --- a/apps/dnet-is-application/src/main/java/eu/dnetlib/openaire/dsm/DsmService.java +++ b/apps/dnet-is-application/src/main/java/eu/dnetlib/openaire/dsm/DsmService.java @@ -25,6 +25,7 @@ import org.apache.commons.logging.LogFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Qualifier; import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty; +import org.springframework.cache.annotation.Cacheable; import org.springframework.data.domain.Page; import org.springframework.data.domain.PageRequest; import org.springframework.data.jpa.domain.Specification; @@ -448,6 +449,7 @@ public class DsmService { } @Transactional + @Cacheable("brosable_terms") public List browseTerm(final DsmBrowsableFields f) { switch (f) { case type: diff --git a/apps/dnet-is-application/src/main/resources/static/vocs/editor.html b/apps/dnet-is-application/src/main/resources/static/vocs/editor.html index f8efb8a3..5aa496fa 100644 --- a/apps/dnet-is-application/src/main/resources/static/vocs/editor.html +++ b/apps/dnet-is-application/src/main/resources/static/vocs/editor.html @@ -1,4 +1,3 @@ -
diff --git a/libs/dnet-is-common/TODO.txt b/libs/dnet-is-common/TODO.txt deleted file mode 100644 index 6349d133..00000000 --- a/libs/dnet-is-common/TODO.txt +++ /dev/null @@ -1,4 +0,0 @@ -- Cache -- Spinner durante il caricamento -- Astrarre le chiamate Ajax con Spinner -- Nuove pagine