From eb41d3e2ef9829a2685da6a1dcac82150457b74f Mon Sep 17 00:00:00 2001 From: Pierre Goiffon Date: Mon, 30 Mar 2020 17:02:32 +0200 Subject: [PATCH] :memo: Fix erroneous PHPDoc for InlineImageGC --- core/inlineimage.class.inc.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/core/inlineimage.class.inc.php b/core/inlineimage.class.inc.php index c34dc163f..7b6297410 100644 --- a/core/inlineimage.class.inc.php +++ b/core/inlineimage.class.inc.php @@ -553,14 +553,12 @@ JS /** * Garbage collector for cleaning "old" temporary InlineImages (and Attachments). - * This background process runs every hour and deletes all temporary InlineImages and Attachments - * whic are are older than one hour. */ class InlineImageGC implements iBackgroundProcess { public function GetPeriodicity() { - return 1; // Runs every 8 hours + return 1; } /** @@ -593,6 +591,9 @@ class InlineImageGC implements iBackgroundProcess } /** + * Remove $sClass instance based on their `expire` field value. + * This `expire` field contains current time + draft_attachments_lifetime config parameter, it is initialized on object creation. + * * @param string $sClass * @param int $iTimeLimit * @param string $sDateLimit