mirror of
https://github.com/friendica/friendica
synced 2025-04-28 03:50:17 +00:00
Add debug for item deletion
This commit is contained in:
parent
b1b6533512
commit
25dceccf77
4 changed files with 10 additions and 5 deletions
|
@ -45,6 +45,7 @@ class Expire
|
|||
$condition = ["`deleted` AND `changed` < UTC_TIMESTAMP() - INTERVAL 60 DAY"];
|
||||
$rows = DBA::select('item', ['id'], $condition);
|
||||
while ($row = DBA::fetch($rows)) {
|
||||
Logger::notice('Delete expired item', ['id' => $row["id"]]);
|
||||
DBA::delete('item', ['id' => $row['id']]);
|
||||
}
|
||||
DBA::close($rows);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue