From 9797fc171de50d3ed3c6eb9b75d0a321a8ac9e75 Mon Sep 17 00:00:00 2001 From: Steve Boyd Date: Wed, 23 Aug 2023 11:18:50 +1200 Subject: [PATCH] DOC Staticpublishqueue changelog entry --- en/04_Changelogs/5.1.0.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/en/04_Changelogs/5.1.0.md b/en/04_Changelogs/5.1.0.md index cdc7a2161..18b0b753e 100644 --- a/en/04_Changelogs/5.1.0.md +++ b/en/04_Changelogs/5.1.0.md @@ -13,6 +13,7 @@ title: 5.1.0 (unreleased) - [New `InheritedPermissions` option - only these members](#only-these-members) - [Optimised queries when filtering against IDs](#filter-by-ids) - [Session manager anonymize stored IP addresses](#session-manager-ip) + - [Static publish queue related page regeneration](#staticpublishqueue-regeneration) - [Other new features](#other-features) - [API changes](#api-changes) - [Dependency changes](#dependency-changes) @@ -119,6 +120,23 @@ SilverStripe\SessionManager\Models\LoginSession: anonymize_ip: true ``` +### Static publish queue related page regeneration {#staticpublishqueue-regeneration} + +New configuration options have been added to [Static Publish Queue](https://github.com/silverstripe/silverstripe-staticpublishqueue) to force regeneration of related pages after publishing or unpublishing a related page. You can enable this with the following configuration: + +```yml +SilverStripe\CMS\Model\SiteTree: + regenerate_children: recursive + regenerate_parents: recursive +``` + +Available options are: +- `none`: Do not regenerate any parent or child hierarchy +- `direct`: Regenerate only one level above or below (direct parent or children, but not grandparent or grandchildren) +- `recursive`: Regenerate the entire parent or child hierarchy + +Read more about new [configuration options](https://github.com/silverstripe/silverstripe-staticpublishqueue/blob/6/docs/en/basic_configuration.md#control-when-childparent-pages-are-regenerated-in-cache-actions). + ### Other new features - You can now exclude specific `DataObject` models from the check and repair step of `dev/build` - see [ORM Performance](/developer_guides/performance/orm/#skip-check-and-repair) for more information.