Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in
Toggle navigation
T
tanpu-community
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
探普后端
tanpu-community
Commits
9296eb65
Commit
9296eb65
authored
Dec 10, 2021
by
刘基明
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
降低缓存刷新频率
parent
5609bb9d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
ConJobManager.java
.../main/java/com/tanpu/community/manager/ConJobManager.java
+4
-4
No files found.
community-service/src/main/java/com/tanpu/community/manager/ConJobManager.java
View file @
9296eb65
...
...
@@ -30,7 +30,7 @@ public class ConJobManager {
/**
* 定时统计 话题 访问数据,并刷到redis
*/
@Scheduled
(
cron
=
"*/10 * * * * ?"
)
//
@Scheduled(cron = "*/10 * * * * ?")
public
void
topicVisitorStats
()
{
String
topicId
=
"123"
;
Integer
detailVisitTimes
=
visitLogService
.
queryTopicDetailVisit
(
topicId
);
...
...
@@ -40,16 +40,16 @@ public class ConJobManager {
/**
* 定时统计主题、话题排行
*/
@Scheduled
(
cron
=
"
*/30 *
* * * ?"
)
@Scheduled
(
cron
=
"
10 */2
* * * ?"
)
public
void
themeRank
()
{
rankService
.
rankThemes
();
rankService
.
rankTopics
();
}
/**
* 定时
统计主题、话题排行
* 定时
刷新最新帖子
*/
@Scheduled
(
cron
=
"*/
5
* * * * ?"
)
@Scheduled
(
cron
=
"*/
10
* * * * ?"
)
public
void
getThemeNewest
()
{
recommendService
.
refreshNewestThemes
();
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment