From a8b553d73ff51e5441d21b3b57dcb2bb85a5a991 Mon Sep 17 00:00:00 2001 From: Karl 'vollmerk' Vollmer Date: Mon, 26 May 2008 09:38:39 +0000 Subject: fixed rating caching --- lib/class/browse.class.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'lib/class/browse.class.php') diff --git a/lib/class/browse.class.php b/lib/class/browse.class.php index 663761fd..932b4064 100644 --- a/lib/class/browse.class.php +++ b/lib/class/browse.class.php @@ -825,19 +825,16 @@ class Browse { switch ($_SESSION['browse']['type']) { case 'song': show_box_top(_('Songs') . $match, $class); + Song::build_cache($object_ids); require_once Config::get('prefix') . '/templates/show_songs.inc.php'; show_box_bottom(); break; case 'album': show_box_top(_('Albums') . $match, $class); + Album::build_cache($object_ids); require_once Config::get('prefix') . '/templates/show_albums.inc.php'; show_box_bottom(); break; - case 'genre': - show_box_top(_('Genres') . $match, $class); - require_once Config::get('prefix') . '/templates/show_genres.inc.php'; - show_box_bottom(); - break; case 'user': show_box_top(_('Manage Users') . $match, $class); require_once Config::get('prefix') . '/templates/show_users.inc.php'; @@ -845,6 +842,7 @@ class Browse { break; case 'artist': show_box_top(_('Artists') . $match, $class); + Artist::build_cache($object_ids); require_once Config::get('prefix') . '/templates/show_artists.inc.php'; show_box_bottom(); break; -- cgit