Merge pull request #44 from nickspiel/patch-2

Only publish 'legal' pages
This commit is contained in:
Will Rossiter 2015-05-11 15:09:33 +12:00
commit 136cfea039

View File

@ -149,6 +149,9 @@ abstract class StaticPublisher extends DataExtension {
}
$urls = array_unique($urls);
$legalPages = singleton('Page')->allPagesToCache();
$urls = array_intersect($urls, $legalPages);
$this->publishPages($urls);
}
@ -188,4 +191,4 @@ abstract class StaticPublisher extends DataExtension {
'Cache generated on ' . date('Y-m-d H:i:s T (O)')
);
}
}
}