This commit is contained in:
Marcin Łabanowski 2013-01-23 17:19:31 +01:00
commit 25268f3876
2 changed files with 35 additions and 40 deletions

View file

@ -435,16 +435,7 @@ class Thread {
$built = Element('post_thread.html', array('config' => $config, 'board' => $board, 'post' => &$this, 'index' => $index));
if (!$this->mod && $index && $config['cache']['enabled']) {
cache::set($this->cache_key($index), $built);
}
return $built;
}
function cache_key($index) {
global $board;
return 'thread_' . ($index ? 'index_' : '') . $board['uri'] . '_' . $this->id;
}
};