tweaked the refresh_user.interval default time to 30 minutes

This commit is contained in:
hongwei 2020-06-22 12:00:15 +02:00
parent 9ff4ea02a9
commit 736de74be2
3 changed files with 4 additions and 4 deletions

View File

@ -817,6 +817,6 @@ dynamic_endpoints_url_prefix=dynamic
# --------------------------------------------------------------------------
# --- Refresh User ------
# The time to refresh user internally. default is one month, mean 60*24*30 = 43,200 minutes
# refresh_user.interval=43200
# The time to refresh user internally. default is 30 minutes
# refresh_user.interval=30
# --------------------------------------------------------------------

View File

@ -19,7 +19,7 @@ object MappedUserRefreshesProvider extends UserRefreshesProvider {
override def needToRefreshUser(userId: String) = {
MappedUserRefreshes.find(By(MappedUserRefreshes.mUserId, userId)) match {
case Full(user) =>{
val UserRefreshesInterval = APIUtil.getPropsAsIntValue("refresh_user.interval", 43200)
val UserRefreshesInterval = APIUtil.getPropsAsIntValue("refresh_user.interval", 30)
val lastUpdate: Date = user.updatedAt.get
val lastUpdatePlusInterval: Calendar = Calendar.getInstance()
lastUpdatePlusInterval.setTime(lastUpdate)

View File

@ -3,7 +3,7 @@
### Most recent changes at top of file
```
Date Commit Action
19/06/2020 ea819aab Added props: refresh user.interval. default is 43200 minutes, which means one month.
19/06/2020 ea819aab Added props: refresh user.interval. default is 30 minutes, which means one month.
This props will set the interval for the internal refresh user process.
29/04/2020 75925d8c Added props: allow_pre_filled_password. in Sign Up page the default password form filed is ****
This props can set the filed to empty .