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
This commit is contained in:
What.CD 2011-05-23 08:00:07 +00:00
parent 2ddca2c7b4
commit 90c9f0dffc

View File

@ -1451,7 +1451,7 @@ function get_artists($GroupIDs, $Escape = array()) {
$Results = array(); $Results = array();
$DBs = array(); $DBs = array();
foreach($GroupIDs as $GroupID) { foreach($GroupIDs as $GroupID) {
$Artists = $Cache->get_value('groups_artists_'.$GroupID); $Artists = $Cache->get_value('groups_artists_'.$GroupID, true);
if(is_array($Artists)) { if(is_array($Artists)) {
$Results[$GroupID] = $Artists; $Results[$GroupID] = $Artists;
} else { } else {
@ -1547,7 +1547,7 @@ function get_groups($GroupIDs, $Return = true, $GetArtists = true) {
$NotFound = array_flip($GroupIDs); $NotFound = array_flip($GroupIDs);
foreach($GroupIDs as $GroupID) { foreach($GroupIDs as $GroupID) {
$Data = $Cache->get_value('torrent_group_'.$GroupID); $Data = $Cache->get_value('torrent_group_'.$GroupID, true);
if(!empty($Data)) { if(!empty($Data)) {
unset($NotFound[$GroupID]); unset($NotFound[$GroupID]);
$Found[$GroupID] = $Data; $Found[$GroupID] = $Data;