dont rebuild a page, when not needed, even if it doesn
t exist
This commit is contained in:
parent
6cbd51b83c
commit
7fd8c75450
|
@ -1494,7 +1494,7 @@ function buildIndex() {
|
||||||
$filename = $board['dir'] . ($page == 1 ? $config['file_index'] : sprintf($config['file_page'], $page));
|
$filename = $board['dir'] . ($page == 1 ? $config['file_index'] : sprintf($config['file_page'], $page));
|
||||||
|
|
||||||
if (!$config['api']['enabled'] && $config['try_smarter'] && isset($build_pages) && !empty($build_pages)
|
if (!$config['api']['enabled'] && $config['try_smarter'] && isset($build_pages) && !empty($build_pages)
|
||||||
&& !in_array($page, $build_pages) && is_file($filename))
|
&& !in_array($page, $build_pages) )
|
||||||
continue;
|
continue;
|
||||||
$content = index($page);
|
$content = index($page);
|
||||||
if (!$content)
|
if (!$content)
|
||||||
|
@ -1511,7 +1511,7 @@ function buildIndex() {
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($config['api']['enabled'] && $config['try_smarter'] && isset($build_pages) && !empty($build_pages)
|
if ($config['api']['enabled'] && $config['try_smarter'] && isset($build_pages) && !empty($build_pages)
|
||||||
&& !in_array($page, $build_pages) && is_file($filename))
|
&& !in_array($page, $build_pages) )
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if ($config['try_smarter']) {
|
if ($config['try_smarter']) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user