$FeaturedAlbum = $Cache->get_value('featured_album'); if($FeaturedAlbum === false) { $DB->query("SELECT fa.GroupID, tg.Name, tg.WikiImage, fa.ThreadID, fa.Title FROM featured_albums AS fa JOIN torrents_group AS tg ON tg.ID=fa.GroupID WHERE Ended = 0"); $FeaturedAlbum = $DB->next_record(); $Cache->cache_value('featured_album', $FeaturedAlbum, 0); } if(is_number($FeaturedAlbum['GroupID'])) { $Artists = Artists::get_artist($FeaturedAlbum['GroupID']); ?>