From: Michael Date: Sun, 1 Jul 2018 09:08:58 +0000 (+0000) Subject: Improved logging for expired items X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=32a639891f447ed0c4c67fbbff5f96e7739c3169;p=friendica.git Improved logging for expired items --- diff --git a/src/Model/Item.php b/src/Model/Item.php index 3f80b11c31..71faa3f267 100644 --- a/src/Model/Item.php +++ b/src/Model/Item.php @@ -2518,7 +2518,7 @@ class Item extends BaseObject $expire_starred = PConfig::get($uid, 'expire', 'starred', true); $expire_photos = PConfig::get($uid, 'expire', 'photos', false); - logger('User ' . $uid . ": expire items: $expire_items, expire notes: $expire_notes, expire starred: $expire_starred, expire photos: $expire_photos"); + $expired = 0; while ($item = Item::fetch($items)) { // don't expire filed items @@ -2540,8 +2540,11 @@ class Item extends BaseObject } self::deleteById($item['id'], PRIORITY_LOW); + + ++$expired; } dba::close($items); + logger('User ' . $uid . ": expired $expired items; expire items: $expire_items, expire notes: $expire_notes, expire starred: $expire_starred, expire photos: $expire_photos"); } public static function firstPostDate($uid, $wall = false)