Skip to content

Commit

Permalink
Cache needs to be sync to return id
Browse files Browse the repository at this point in the history
  • Loading branch information
cjmalloy committed Aug 15, 2023
1 parent 77e6a0e commit 5d45895
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/main/java/jasper/component/WebScraper.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 5d45895

Please sign in to comment.