From b693779d0d5abba5caeabaddfc124540382a09d1 Mon Sep 17 00:00:00 2001 From: Michael Save Date: Wed, 23 Jan 2013 12:43:46 +1100 Subject: Hopefully a final fix for caching thread previews. This feature was previous disabled because of a bug/confliction. --- inc/display.php | 9 --------- 1 file changed, 9 deletions(-) (limited to 'inc/display.php') 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; - } }; -- cgit v1.3