From c473b5409c2ef917f1cdff5aca46d5cf8547bbcc Mon Sep 17 00:00:00 2001 From: 8chan Date: Wed, 21 Jan 2015 23:53:43 -0800 Subject: [PATCH] Fix no cache bug in display.php --- inc/display.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/inc/display.php b/inc/display.php index b5744757..a4628a77 100644 --- a/inc/display.php +++ b/inc/display.php @@ -434,7 +434,8 @@ class Post { 'clean_global_mod_id' => null, ); - cache::set("post_clean_{$board['uri']}_{$this->id}", $this->clean); + if ($config['cache']['enabled']) + cache::set("post_clean_{$board['uri']}_{$this->id}", $this->clean); } }