diff --git a/classes/class_artists.php b/classes/class_artists.php index 3500eccf..aff961c5 100644 --- a/classes/class_artists.php +++ b/classes/class_artists.php @@ -243,6 +243,7 @@ public static function delete_artist($ArtistID) { $DB->query('DELETE FROM artists_tags WHERE ArtistID='.$ArtistID); $Cache->delete_value('artist_'.$ArtistID); + $Cache->delete_value('artist_groups_'.$ArtistID); // Record in log if(!empty($LoggedUser['Username'])) { diff --git a/classes/class_lastfm.php b/classes/class_lastfm.php index c59fa114..40acb799 100644 --- a/classes/class_lastfm.php +++ b/classes/class_lastfm.php @@ -1,6 +1,5 @@ $Value) { $Url .= "&".$Key."=".urlencode($Value); } - $Url .= "&format=json&api_key=".LASTFM_KEY; + $Url .= "&format=json&api_key=".LASTFM_API_KEY; $Curl=curl_init(); curl_setopt($Curl,CURLOPT_HEADER,0); diff --git a/classes/class_torrents.php b/classes/class_torrents.php index 59aca00c..2f7e09c4 100644 --- a/classes/class_torrents.php +++ b/classes/class_torrents.php @@ -210,14 +210,6 @@ public static function delete_torrent($ID, $GroupID=0, $OcelotReason=-1) { Torrents::delete_group($GroupID); } else { Torrents::update_hash($GroupID); - //Artists - $DB->query("SELECT ArtistID - FROM torrents_artists - WHERE GroupID = ".$GroupID); - $ArtistIDs = $DB->collect('ArtistID'); - foreach ($ArtistIDs as $ArtistID) { - $Cache->delete_value('artist_'.$ArtistID); - } } // Torrent notifications @@ -316,7 +308,7 @@ public static function delete_group($GroupID) { Artists::delete_artist($ArtistID); } else { //Not the only group, still need to clear cache - $Cache->delete_value('artist_'.$ArtistID); + $Cache->delete_value('artist_groups_'.$ArtistID); } } @@ -416,7 +408,7 @@ public static function update_hash($GroupID) { $ArtistInfo = Artists::get_artist($GroupID); foreach ($ArtistInfo as $Importances => $Importance) { foreach ($Importance as $Artist) { - $Cache->delete_value('artist_'.$Artist['id']); //Needed for at least freeleech change, if not others. + $Cache->delete_value('artist_groups_'.$Artist['id']); //Needed for at least freeleech change, if not others. } } diff --git a/design/privateheader.php b/design/privateheader.php index 445284ac..4268094e 100644 --- a/design/privateheader.php +++ b/design/privateheader.php @@ -169,7 +169,7 @@ $Cache->cache_value('subscriptions_user_new_'.$LoggedUser['ID'], $NewSubscriptions, 0); } ?> -