silverstripe-framework/tests/php
Sam Minnée 5b7a84141b NEW: Add Hierarchy::prepopulate_numchildren_cache() (#8380)
* 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
2018-09-25 12:25:23 +12:00
..
Control FIX text/json is not a valid mimetype 2018-08-15 12:10:39 +01:00
Core Add upgrade rule for HTTPCacheControl 2018-06-14 11:55:05 +12:00
Dev FIX updateValidatePassword calls need to be masked from backtraces 2018-07-23 14:08:26 +01:00
Forms ADD New search component for GridFields (#1777) 2018-09-04 11:35:17 +12:00
i18n Fixing string concat CS issues 2018-01-16 18:39:30 +00:00
Logging Fixing string concat CS issues 2018-01-16 18:39:30 +00:00
ORM NEW: Add Hierarchy::prepopulate_numchildren_cache() (#8380) 2018-09-25 12:25:23 +12:00
Security FIX Message when changing password with invalid token now contains correct links to login 2018-08-20 22:30:12 +12:00
View NEW Shift Embeddable and EmbedResource from asset-admin, lazy load Embed to allow injected dependencies (#8194) 2018-06-20 11:40:28 +12:00