|
@@ -26,6 +26,7 @@ import com.mooctest.crowd.site.service.CommonService;
|
|
|
import com.mooctest.crowd.site.util.DataUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.beans.factory.annotation.Qualifier;
|
|
|
+import org.springframework.cache.annotation.Cacheable;
|
|
|
import org.springframework.data.domain.Page;
|
|
|
import org.springframework.data.domain.PageRequest;
|
|
|
import org.springframework.data.domain.Pageable;
|
|
@@ -185,6 +186,7 @@ public class CommonServiceImpl implements CommonService {
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
+ @Cacheable(value = "platformDataCache")
|
|
|
public DataDTO getAllData() {
|
|
|
DataDTO dataDTO = new DataDTO();
|
|
|
List<CrowdTestProject> allCrowdTestProject = projectRepo.getAllCrowdTestProject();
|