- }
-
- $abandon_days = intval(get_config('system','account_abandon_days'));
- if($abandon_days < 1)
- $abandon_days = 0;
-
- // Check OStatus conversations
- // Check only conversations with mentions (for a longer time)
- check_conversations(true);
-
- // Check every conversation
- check_conversations(false);
-
- // To-Do: Regenerate usage statistics
- // q("ANALYZE TABLE `item`");
-
- // once daily run birthday_updates and then expire in background
-
- $d1 = get_config('system','last_expire_day');
- $d2 = intval(datetime_convert('UTC','UTC','now','d'));
-
- if($d2 != intval($d1)) {
-
- update_contact_birthdays();
-
- update_suggestions();
-
- set_config('system','last_expire_day',$d2);
- proc_run('php','include/expire.php');
- }
-
- $last = get_config('system','cache_last_cleared');