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));
|
||||
|
||||
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;
|
||||
$content = index($page);
|
||||
if (!$content)
|
||||
@ -1511,7 +1511,7 @@ function buildIndex() {
|
||||
}
|
||||
|
||||
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;
|
||||
|
||||
if ($config['try_smarter']) {
|
||||
|
Loading…
Reference in New Issue
Block a user