From 9b96b44d6415e37b570b361e5dc2aa3cf9239add Mon Sep 17 00:00:00 2001 From: Shish Date: Fri, 20 Jan 2012 05:13:07 +0000 Subject: [PATCH] tag cache is glitchy, too many things might update it --- core/imageboard.pack.php | 6 ------ 1 file changed, 6 deletions(-) diff --git a/core/imageboard.pack.php b/core/imageboard.pack.php index 70e0d9fb..23730451 100644 --- a/core/imageboard.pack.php +++ b/core/imageboard.pack.php @@ -231,14 +231,9 @@ class Image { */ public function get_tag_array() { global $database; - $cached = $database->cache->get("image-{$this->id}-tags"); - if($cached) return $cached; - if(!isset($this->tag_array)) { $this->tag_array = $database->get_col("SELECT tag FROM image_tags JOIN tags ON image_tags.tag_id = tags.id WHERE image_id=:id ORDER BY tag", array("id"=>$this->id)); } - - $database->cache->set("image-{$this->id}-tags", $this->tag_array); return $this->tag_array; } @@ -444,7 +439,6 @@ class Image { } log_info("core-image", "Tags for Image #{$this->id} set to: ".implode(" ", $tags)); - $database->cache->delete("image-{$this->id}-tags"); } /**