Try staticpublisherqueue (https://github.com/silverstripe-labs/silverstripe-staticpublishqueue) which will generate pages through an event system and perhaps better for larger sites (and going to be more scalable than the default static publisher).
Do you know what part is causing the delay - the fetch of pages or the actual processing of each page? If it's a fetch, then no nice way apart from querying for the page links in batches. The processing of each page can be batched down a bit so rather than calling RebuildStaticCacheTask and rebuilding all pages at once you can do something like
sake dev/buildcache "start=0&count=300"
sake dev/buildcache "start=300&count=300"
..
Posted to: Only one level being returned for Sitetree | Show Thread | Post Reply