Changes changelog on index to show last 10 entries.
This commit is contained in:
parent
b85367b1f3
commit
41109793a7
1 changed files with 1 additions and 7 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue