Remove random publishing of 10 pages

This commit is contained in:
Daniel Hensby 2016-02-24 15:37:18 +00:00
parent d53b3ad855
commit 97cef021d6

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()