xiongzhu vor 4 Jahren
Ursprung
Commit
9d3e51d9b7
1 geänderte Dateien mit 0 neuen und 2 gelöschten Zeilen
  1. 0 2
      src/main/java/com/izouma/nineth/repo/CollectionRepo.java

+ 0 - 2
src/main/java/com/izouma/nineth/repo/CollectionRepo.java

@@ -40,11 +40,9 @@ public interface CollectionRepo extends JpaRepository<Collection, Long>, JpaSpec
 
     @Nonnull
     @CachePut(value = "collection", key = "#collection.id")
-    @CacheEvict(value = {"recommend"})
     Collection save(@Nonnull Collection collection);
 
     @Query("select c from Collection c join Recommend r on c.id = r.collectionId " +
             "where c.del = false and c.onShelf = true and r.type = ?1 order by r.sort desc")
-    @Cacheable("recommend")
     List<Collection> recommend(String type);
 }