Permalink
Browse files

StatUpdater: статистику групп обновляем раз в час, а не раз в 10 минут

  • Loading branch information...
1 parent 89ed613 commit 1b9d786aca6935cbab804c400d21740c8619920a @maxcom maxcom committed May 6, 2012
Showing with 7 additions and 1 deletion.
  1. +7 −1 src/main/java/ru/org/linux/spring/StatUpdater.java
@@ -49,10 +49,16 @@ public void updateStats() {
logger.debug("Updating statistics");
statUpdate.execute();
- statUpdate2.execute();
statMonthly.execute();
}
+ @Scheduled(fixedDelay=60*60*1000)
+ public void updateGroupStats() {
+ logger.debug("Updating group statistics");
+
+ statUpdate2.execute();
+ }
+
@Scheduled(fixedDelay = 60*60*1000)
public void cleanEvents() {
userEventService.cleanupOldEvents(MAX_EVENTS);

0 comments on commit 1b9d786

Please sign in to comment.