From 5d4589521a1378ff4dd8102505b0652b053f621a Mon Sep 17 00:00:00 2001 From: Chris Malloy Date: Tue, 15 Aug 2023 01:04:35 -0300 Subject: [PATCH] Cache needs to be sync to return id --- src/main/java/jasper/component/WebScraper.java | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/main/java/jasper/component/WebScraper.java b/src/main/java/jasper/component/WebScraper.java index 81714cd1..a05fd695 100644 --- a/src/main/java/jasper/component/WebScraper.java +++ b/src/main/java/jasper/component/WebScraper.java @@ -27,7 +27,6 @@ import org.springframework.beans.factory.annotation.Autowired; import org.springframework.cache.annotation.CacheEvict; import org.springframework.cache.annotation.Cacheable; -import org.springframework.scheduling.annotation.Async; import org.springframework.scheduling.annotation.Scheduled; import org.springframework.stereotype.Component; import org.springframework.transaction.annotation.Transactional; @@ -602,7 +601,6 @@ public boolean exists(String url) { return webRepository.existsById(fixUrl(url)); } - @Async @Timed(value = "jasper.webscrape") public Web cache(Web web) { return webRepository.save(web);