forked from leftypol/leftypol
Merge branch 'master' of https://github.com/savetheinternet/Tinyboard
This commit is contained in:
commit
25268f3876
2 changed files with 35 additions and 40 deletions
|
@ -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;
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue