|
@ -1690,6 +1690,14 @@ function buildIndex($global_api = "yes") { |
|
|
if (!$content) |
|
|
if (!$content) |
|
|
break; |
|
|
break; |
|
|
|
|
|
|
|
|
|
|
|
if ($config['cache']['enabled']) { |
|
|
|
|
|
$contentHash = md5(json_encode($content['threads'])); |
|
|
|
|
|
$cacheHit = cache::get('index_cache'. $contentHash); |
|
|
|
|
|
if ($cacheHit) |
|
|
|
|
|
continue; |
|
|
|
|
|
cache::set('index_cache'. $contentHash, "processed", 3600); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
// json api |
|
|
// json api |
|
|
if ($config['api']['enabled']) { |
|
|
if ($config['api']['enabled']) { |
|
|
$threads = $content['threads']; |
|
|
$threads = $content['threads']; |
|
|