diff --git a/marketorders/marketorders.global.php b/marketorders/marketorders.global.php index 9f151c0..0257565 100644 --- a/marketorders/marketorders.global.php +++ b/marketorders/marketorders.global.php @@ -169,3 +169,8 @@ /* ===== */ } } +if($cfg['plugin']['marketorders']['clearordersdays'] > 0) +{ + $clearordersdays = $sys['now'] - $cfg['plugin']['marketorders']['clearordersdays'] * 24 * 60 * 60; + $db->delete($db_market_orders, "order_status='new' AND order_date<" . $clearordersdays); +}