]> git.mxchange.org Git - friendica.git/commitdiff
Added documentation
authorMichael <heluecht@pirati.ca>
Tue, 6 Jun 2017 17:38:58 +0000 (17:38 +0000)
committerMichael <heluecht@pirati.ca>
Tue, 6 Jun 2017 17:38:58 +0000 (17:38 +0000)
include/dbclean.php

index 024b845f7dc736a8a8fd3e0fd066676ff56a56ef..8da78d64b59c9056e2afa602e902c8f6fc0d103b 100644 (file)
@@ -35,6 +35,19 @@ function dbclean_run(&$argv, &$argc) {
 
 /**
  * @brief Remove orphaned database entries
+ * @param integer $stage What should be deleted?
+ *
+ * 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
  */
 function remove_orphans($stage = 0) {
        global $db;