nyeholt/silverstripe-performant

A set of utilities for making SS perform a little better

Installs: 5 506

Dependents: 1

Suggesters: 0

Security: 0

Stars: 6

Watchers: 1

Forks: 1

Open Issues: 1

Type:silverstripe-module

1.0.0 2016-02-01 05:54 UTC

This package is auto-updated.

Last update: 2024-03-29 02:47:21 UTC


README

A module for pre-calculating a load of data about your page structure to greatly speed up things like menu generation.

Avoids the costly recursive tree lookups that things like Children, Link, Parent can trigger, but still applies a level of permission checking, and respects ShowInMenus settings.

Maintainer Contact

Marcus Nyeholt

<marcus (at) silverstripe (dot) com (dot) au>

Requirements

  • SilverStripe 3.x

Documentation

With a reference to the SiteDataService, you can access

  • getItem() - a DataObjectNode object
  • getItems() - all page objects

DataObjectNode provides a partial API implementation for accessing methods typically found on SiteTree, but where the items returned are DataObjectNodes looked up via the pre-cached data in SiteDataService