Browse Source

use more cache. Speeds up page builds

pull/72/head
Your Name 2 years ago
parent
commit
ea30bf8adc
  1. 8
      inc/functions.php

8
inc/functions.php

@ -1690,6 +1690,14 @@ function buildIndex($global_api = "yes") {
if (!$content)
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
if ($config['api']['enabled']) {
$threads = $content['threads'];

Loading…
Cancel
Save