From 20f854681aefd625d9e06e1c493c7ea2cc5bbcf4 Mon Sep 17 00:00:00 2001 From: Guy Sartorelli Date: Thu, 23 Nov 2023 12:25:55 +1300 Subject: [PATCH] DOC Add new query trace comment to changelog --- en/04_Changelogs/5.2.0.md | 1 + 1 file changed, 1 insertion(+) diff --git a/en/04_Changelogs/5.2.0.md b/en/04_Changelogs/5.2.0.md index 590afc252..954a2b662 100644 --- a/en/04_Changelogs/5.2.0.md +++ b/en/04_Changelogs/5.2.0.md @@ -106,6 +106,7 @@ The files section of the CMS now has buttons to select and deselect all files an ### Other new features - A new [`SiteTree.hide_pagetypes`](api:SilverStripe\CMS\Model\SiteTree->hide_pagetypes) configuration property has been added. Unlike [`SiteTree.hide_ancestor`](api:SilverStripe\CMS\Model\SiteTree->hide_ancestor) (which has [now been deprecated](#api-silverstripe-cms)), this is an array. This allows you to define all page types that should be hidden in a single configuration property in your yaml configuration. +- In dev mode, database queries will automatically have a comment indicating where they were executed from. This can be useful when debugging slow queries, e.g. with the [`showqueries` query string](/developer_guides/debugging/url_variable_tools/#database). ## API changes