summaryrefslogtreecommitdiff
path: root/inc/display.php
diff options
context:
space:
mode:
authorMichael Save <savetheinternet@tinyboard.org>2013-01-23 12:43:46 +1100
committerMichael Save <savetheinternet@tinyboard.org>2013-01-23 12:43:46 +1100
commitb693779d0d5abba5caeabaddfc124540382a09d1 (patch)
tree3d2edb3e7236b458a72147ec6b973456b10222e3 /inc/display.php
parent7a68fc952548d3f275518f675888143d93e9148a (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.php9
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;
- }
};