diff options
| author | Michael Save <savetheinternet@tinyboard.org> | 2013-01-23 12:43:46 +1100 |
|---|---|---|
| committer | Michael Save <savetheinternet@tinyboard.org> | 2013-01-23 12:43:46 +1100 |
| commit | b693779d0d5abba5caeabaddfc124540382a09d1 (patch) | |
| tree | 3d2edb3e7236b458a72147ec6b973456b10222e3 /inc/display.php | |
| parent | 7a68fc952548d3f275518f675888143d93e9148a (diff) | |
Hopefully a final fix for caching thread previews. This feature was previous disabled because of a bug/confliction.
Diffstat (limited to 'inc/display.php')
| -rw-r--r-- | inc/display.php | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/inc/display.php b/inc/display.php index 39cb86c7..3dd57726 100644 --- a/inc/display.php +++ b/inc/display.php @@ -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; - } }; |
