Browse Source

Added documentation

pull/3521/head
Michael 4 years ago
parent
commit
929f518e5c
1 changed files with 13 additions and 0 deletions
  1. +13
    -0
      include/dbclean.php

+ 13
- 0
include/dbclean.php View 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;


Loading…
Cancel
Save