Skip to content

Commit

Permalink
Remove random publishing of 10 pages
Browse files Browse the repository at this point in the history
  • Loading branch information
dhensby committed Feb 24, 2016
1 parent d53b3ad commit 97cef02
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions code/extensions/StaticPublisher.php
Original file line number Diff line number Diff line change
Expand Up @@ -134,13 +134,6 @@ public function republish($original)

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

0 comments on commit 97cef02

Please sign in to comment.