Jelajahi Sumber

取消缓存

yfh 1 Minggu lalu
induk
melakukan
e3c9104072

+ 1 - 1
fs-user-app/src/main/java/com/fs/app/controller/AdvController.java

@@ -26,7 +26,7 @@ public class AdvController {
 	@Autowired
 	private IFsAdvService advService;
 
-	@Cacheable(value="getAdvList", key="#map")
+//	@Cacheable(value="getAdvList", key="#map")
 	@ApiOperation("获取首页广告位")
 	@GetMapping("/getAdvList")
 	public R getAdvList(FsAdvUParam map){

+ 0 - 9
fs-user-app/src/main/java/com/fs/app/controller/CommonController.java

@@ -603,13 +603,4 @@ public class CommonController {
 		return R.error("获取域名失败,请检查后台配置!");
 	}
 
-
-	@GetMapping("/deleteByhc")
-	public R deleteByhc(){
-		redisCache.deleteObject("getAdvList");
-		redisCache.deleteObject("getCourseCate");
-		redisCache.deleteObject("getCourseList");
-		return R.ok();
-	}
-
 }

+ 2 - 2
fs-user-app/src/main/java/com/fs/app/controller/CourseController.java

@@ -47,7 +47,7 @@ public class CourseController extends  AppBaseController{
     private IFsCourseSopAppLinkService courseSopAppLinkService;
 
 
-    @Cacheable(value="getCourseCate" )
+//    @Cacheable(value="getCourseCate" )
     @ApiOperation("获取分类")
     @GetMapping("/getCourseCate")
     public R getCourseCate(){
@@ -70,7 +70,7 @@ public class CourseController extends  AppBaseController{
             return R.error("操作异常");
         }
     }
-    @Cacheable(value = "getCourseList",key = "#param" )
+//    @Cacheable(value = "getCourseList",key = "#param" )
     @ApiOperation("课程列表")
     @GetMapping("/getCourseList")
     public R getCourseList(FsUserCourseListUParam param)