mirror of
https://github.com/silverstripe/silverstripe-staticpublisher
synced 2024-10-22 14:05:54 +02:00
Remove random publishing of 10 pages
This commit is contained in:
parent
d53b3ad855
commit
97cef021d6
@ -134,13 +134,6 @@ abstract class StaticPublisher extends DataExtension
|
|||||||
|
|
||||||
if ($this->owner->hasMethod('pagesAffectedByChanges')) {
|
if ($this->owner->hasMethod('pagesAffectedByChanges')) {
|
||||||
$urls = $this->owner->pagesAffectedByChanges($original);
|
$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()
|
// Note: Similiar to RebuildStaticCacheTask->rebuildCache()
|
||||||
|
Loading…
Reference in New Issue
Block a user