public function getAssemblyItems($recursive = true)
{
if ($recursive) {
$results = $this->getCachedAssemblyItems();
if (!$results) {
$results = $this->assembliesRecursive;
// Cache forever since adding / removing assembly
// items will automatically clear this cache.
Cache::forever($this->getAssemblyCacheKey(), $results);
}
return $results;
}
return $this->assemblies;
}