From 41109793a71f071bf88e843d9a385178aec1e196 Mon Sep 17 00:00:00 2001 From: flashwave Date: Tue, 17 Jul 2018 16:03:34 +0200 Subject: [PATCH] Changes changelog on index to show last 10 entries. --- public/index.php | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/public/index.php b/public/index.php index f6029acf..436bcf1c 100644 --- a/public/index.php +++ b/public/index.php @@ -61,14 +61,8 @@ $changelog = Cache::instance()->get('index:changelog:v1', function () { FROM `msz_changelog_changes` as c LEFT JOIN `msz_changelog_actions` as a ON a.`action_id` = c.`action_id` - WHERE DATE(c.`change_created`) >= ( - SELECT DATE(`change_created`) - FROM `msz_changelog_changes` - GROUP BY DATE(`change_created`) - ORDER BY `change_created` DESC - LIMIT 2, 1 - ) ORDER BY c.`change_created` DESC + LIMIT 10 ')->fetchAll(PDO::FETCH_ASSOC); }, 1800);