mirror of
https://github.com/silverstripe/silverstripe-staticpublisher
synced 2024-10-22 14:05:54 +02:00
Merge pull request #56 from dhensby/pulls/remove-random-publishing
Remove random publishing of 10 pages
This commit is contained in:
commit
a85d903a2d
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user