// User::updateLastActivity($user_record['uid']);
// Regularly update suggestions
-// if (Contact\Relation::areSuggestionsOutdated($user_record['uid'])) {
-// Worker::add(Worker::PRIORITY_MEDIUM, 'UpdateSuggestions', $user_record['uid']);
-// }
+ if (Contact\Relation::areSuggestionsOutdated($user_record['uid'])) {
+ Worker::add(Worker::PRIORITY_MEDIUM, 'UpdateSuggestions', $user_record['uid']);
+ }
}
if ($login_initial) {
// User::updateLastActivity($token['uid']);
// Regularly update suggestions
-// if (Contact\Relation::areSuggestionsOutdated($token['uid'])) {
-// Worker::add(Worker::PRIORITY_MEDIUM, 'UpdateSuggestions', $token['uid']);
-// }
+ if (Contact\Relation::areSuggestionsOutdated($token['uid'])) {
+ Worker::add(Worker::PRIORITY_MEDIUM, 'UpdateSuggestions', $token['uid']);
+ }
return $token;
}