X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=include%2Fcron.php;h=c60284b738a7d819f4c6f6e4601b7517a4032eb4;hb=6ff5c23d50095e5407bf69f8a4ec2220c5d2d408;hp=d68bd7f0845eca4c43b9ad6e3091efcbb14d5090;hpb=65d6d45f8cdb2e1f84fc0c345043598a221312de;p=friendica.git diff --git a/include/cron.php b/include/cron.php index d68bd7f084..c60284b738 100644 --- a/include/cron.php +++ b/include/cron.php @@ -71,10 +71,6 @@ function cron_run(&$argv, &$argc){ proc_run('php',"include/queue.php"); - // run diaspora photo queue process in the background - - proc_run('php',"include/dsprphotoq.php"); - // run the process to discover global contacts in the background proc_run('php',"include/discover_poco.php"); @@ -105,10 +101,10 @@ function cron_run(&$argv, &$argc){ // Check OStatus conversations // Check only conversations with mentions (for a longer time) - check_conversations(true); + ostatus::check_conversations(true); // Check every conversation - check_conversations(false); + ostatus::check_conversations(false); // Set the gcontact-id in the item table if missing item_set_gcontact(); @@ -357,7 +353,7 @@ function cron_clear_cache(&$a) { continue; // Calculate fragmentation - $fragmentation = $table["Data_free"] / $table["Data_length"]; + $fragmentation = $table["Data_free"] / ($table["Data_length"] + $table["Index_length"]); logger("Table ".$table["Name"]." - Fragmentation level: ".round($fragmentation * 100, 2), LOGGER_DEBUG);