X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FWorker%2FDBClean.php;h=6d253e0ceafc9f62d707d6b76cd1cfcf6e0b9017;hb=066ad8c01b25b7101ad6fb36878d85c97db51a6f;hp=a722fa23b667188d39517f05e86465a7380d7d17;hpb=2f28c2ebbfd8f66093d7081d40b1d48f65fcff20;p=friendica.git diff --git a/src/Worker/DBClean.php b/src/Worker/DBClean.php index a722fa23b6..6d253e0cea 100644 --- a/src/Worker/DBClean.php +++ b/src/Worker/DBClean.php @@ -11,8 +11,6 @@ use Friendica\Core\Logger; use Friendica\Core\Worker; use Friendica\Database\DBA; -require_once 'include/dba.php'; - class DBClean { public static function execute($stage = 0) { @@ -49,20 +47,19 @@ class DBClean { * * Values for $stage: * ------------------ - * 1: Old global item entries from item table without user copy. - * 2: Items without parents. - * 3: Orphaned data from thread table. - * 4: Orphaned data from notify table. - * 5: Orphaned data from notify-threads table. - * 6: Orphaned data from sign table. - * 7: Orphaned data from term table. - * 8: Expired threads. - * 9: Old global item entries from expired threads. - * 10: Old conversations. + * 1: Old global item entries from item table without user copy. + * 2: Items without parents. + * 3: Orphaned data from thread table. + * 4: Orphaned data from notify table. + * 5: Orphaned data from notify-threads table. + * 6: Orphaned data from sign table. + * 7: Orphaned data from term table. + * 8: Expired threads. + * 9: Old global item entries from expired threads. + * 10: Old conversations. + * @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);