From 90c9f0dffce316e5667f2f7377e62c8ffe820398 Mon Sep 17 00:00:00 2001 From: "What.CD" Date: Mon, 23 May 2011 08:00:07 +0000 Subject: [PATCH] Prevent the merging of non-music groups Include empty values in cache debug table Clear cache when replying to staff pm Internal cache is useless in get_artists and get_groups --- classes/script_start.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/classes/script_start.php b/classes/script_start.php index fdb8033c..656a1b31 100644 --- a/classes/script_start.php +++ b/classes/script_start.php @@ -1451,7 +1451,7 @@ function get_artists($GroupIDs, $Escape = array()) { $Results = array(); $DBs = array(); foreach($GroupIDs as $GroupID) { - $Artists = $Cache->get_value('groups_artists_'.$GroupID); + $Artists = $Cache->get_value('groups_artists_'.$GroupID, true); if(is_array($Artists)) { $Results[$GroupID] = $Artists; } else { @@ -1547,7 +1547,7 @@ function get_groups($GroupIDs, $Return = true, $GetArtists = true) { $NotFound = array_flip($GroupIDs); foreach($GroupIDs as $GroupID) { - $Data = $Cache->get_value('torrent_group_'.$GroupID); + $Data = $Cache->get_value('torrent_group_'.$GroupID, true); if(!empty($Data)) { unset($NotFound[$GroupID]); $Found[$GroupID] = $Data;