The can_view_private_albums() function will slow the page down, if the album permissions are not cached. I have no reason to believe that they are cached.
So showing 20 albums on the page will could add up to 20 additional queries.
--------------- Added [DATE]1326826973[/DATE] at [TIME]1326826973[/TIME] ---------------
Am I blind? Or is the can_view_private_albums() function missing a check to see if the user has set all albums to private (on the page "profile.php?do=privacy")?
Because that exactly is the issue on my forum: a member had a public album but had set all albums to be visible by friends only. Yet the album thumbnail was visible on the page.
|