<?php
/**
* @file src/Worker/DBClean.php
- * @brief The script is called from time to time to clean the database entries and remove orphaned data.
+ * The script is called from time to time to clean the database entries and remove orphaned data.
*/
namespace Friendica\Worker;
}
/**
- * @brief Fork the different DBClean processes
+ * Fork the different DBClean processes
*/
private static function forkCleanProcess() {
// Get the expire days for step 8 and 9
}
/**
- * @brief Remove orphaned database entries
+ * Remove orphaned database entries
+ *
* @param integer $stage What should be deleted?
*
* Values for $stage:
* @throws \Friendica\Network\HTTPException\InternalServerErrorException
*/
private static function removeOrphans($stage) {
- $count = 0;
-
// We split the deletion in many small tasks
$limit = Config::get('system', 'dbclean-expire-limit', 1000);