From 0113f7690b79130e732acbc44b44f5efea410196 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 b9d44472a..afd179c37 100644 --- a/en/04_Changelogs/5.2.0.md +++ b/en/04_Changelogs/5.2.0.md @@ -342,6 +342,7 @@ A [`LogicException`](https://www.php.net/manual/en/class.logicexception.php) is - You can now upload [Braille ASCII file format](https://en.wikipedia.org/wiki/Braille_ASCII) (`.brf`) files to the CMS without needing to modify the [allowed file types](/developer_guides/files/allowed_file_types/). - The assets admin section now respects the [`Upload_Validator.default_max_file_size`](api:SilverStripe\Assets\Upload_Validator->default_max_file_size) configuration if [`AssetAdmin.max_upload_size`](api:SilverStripe\AssetAdmin\Controller\AssetAdmin->max_upload_size) has not been explicitly set for your project. Previously, asset admin would ignore `Upload_Validator.default_max_file_size` and just use the PHP `upload_max_filesize` ini configuration by default. - Redirector pages with a link to a missing or unpublished page/file will now return a 404 response. You can revert to the previous behaviour by setting the [`RedirectorPageController.missing_redirect_is_404`](api:SilverStripe\CMS\Model\RedirectorPageController->missing_redirect_is_404) configuration property to `false`. +- 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