From 906a3aa9bc98721bf4e69663ba08b2ad67e2458a Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Sat, 16 Feb 2013 15:36:10 +0100 Subject: [PATCH] Added missing clean up --- .../lib/system/cronjob/DailyCleanUpCronjob.class.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/wcfsetup/install/files/lib/system/cronjob/DailyCleanUpCronjob.class.php b/wcfsetup/install/files/lib/system/cronjob/DailyCleanUpCronjob.class.php index a6ab0b564d..9590801b5b 100644 --- a/wcfsetup/install/files/lib/system/cronjob/DailyCleanUpCronjob.class.php +++ b/wcfsetup/install/files/lib/system/cronjob/DailyCleanUpCronjob.class.php @@ -49,6 +49,14 @@ class DailyCleanUpCronjob extends AbstractCronjob { (TIME_NOW - (86400 * 30)) )); + // clean up search data + $sql = "DELETE FROM wcf".WCF_N."_search + WHERE searchTime < ?"; + $statement = WCF::getDB()->prepareStatement($sql); + $statement->execute(array( + (TIME_NOW - 86400) + )); + EventHandler::getInstance()->fireAction($this, 'execute'); } } -- 2.20.1