Merge pull request #56 from dhensby/pulls/remove-random-publishing

Remove random publishing of 10 pages
This commit is contained in:
Will Rossiter 2016-02-25 09:10:29 +13:00
commit a85d903a2d

View File

@ -134,13 +134,6 @@ abstract class StaticPublisher extends DataExtension
if ($this->owner->hasMethod('pagesAffectedByChanges')) {
$urls = $this->owner->pagesAffectedByChanges($original);
} else {
$pages = Versioned::get_by_stage('SiteTree', 'Live', '', '', '', 10);
if ($pages) {
foreach ($pages as $page) {
$urls[] = $page->AbsoluteLink();
}
}
}
// Note: Similiar to RebuildStaticCacheTask->rebuildCache()