mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
5b7a84141b
* NEW: Add Hierarchy::prepopulate_numchildren_cache() API: Hierarchy::stageChildren() customisations must be applied to the base class and not include record-specific behaviour. Adds the ability to prepopulate the cache for Hierarchy::numChildren() in a batch. Note that this optimisation means that stageChildren() is not called on each record in order to calculate numChildren(). This means that the structure of the stageChildren() query must be the same for all records and the behaviour cannot be customised only for a subclass of the base data class. For example, apply your customisations to SiteTree and not a subclass. This is an useful part of optimising the query count on tree generation. See https://github.com/silverstripe/silverstripe-framework/issues/8379 * NEW: Add Hierarchy::prepopulateTreeDataCache() This provides a more extensible way of preopulating caches for optimised tree generation. Fixes https://github.com/silverstripe/silverstripe-framework/issues/8391 |
||
---|---|---|
.. | ||
_images | ||
alpha | ||
beta | ||
rc | ||
4.0.0.md | ||
4.0.1.md | ||
4.0.2.md | ||
4.0.3.md | ||
4.0.4.md | ||
4.0.5.md | ||
4.1.0.md | ||
4.1.1.md | ||
4.1.2.md | ||
4.1.3.md | ||
4.2.0.md | ||
4.2.1.md | ||
4.3.0.md | ||
index.md |