Ok, could you please try the following change?

Code:
--------------------
    diff --git a/Slim/Control/Queries.pm b/Slim/Control/Queries.pm
  index 96ee26f..03ee9cf 100644
  --- a/Slim/Control/Queries.pm
  +++ b/Slim/Control/Queries.pm
  @@ -311,7 +311,7 @@ sub albumsQuery {
  }
  
  # cache the most recent album IDs - need to query the tracks table, which is 
expensive
  -                       if ( !Slim::Music::Import->stillScanning() ) {
  +                       if ( !$search && 
!Slim::Music::Import->stillScanning() ) {
  my $ids = $cache->{'newAlbumIds'} || [];
  
  if (!scalar @$ids) {
  @@ -519,7 +519,7 @@ sub albumsQuery {
  # Get count of all results, the count is cached until the next rescan done 
event
  my $cacheKey = $sql . join( '', @{$p} );
  
  -       if ( $sort eq 'new' && $cache->{newAlbumIds} ) {
  +       if ( $sort eq 'new' && $cache->{newAlbumIds} && !$search ) {
  my $albumCount = scalar @{$cache->{newAlbumIds}};
  $albumCount    = $limit if ($limit && $limit < $albumCount);
  $cache->{$cacheKey} ||= $albumCount;
  
--------------------


This would effectively disable the optimizations I added in case there
was a search.



Michael

http://www.herger.net/slim-plugins - AlbumReview, Biography,
MusicInfoSCR, Smart Mix
------------------------------------------------------------------------
mherger's Profile: http://forums.slimdevices.com/member.php?userid=50
View this thread: http://forums.slimdevices.com/showthread.php?t=99404

_______________________________________________
beta mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/beta

Reply via email to