- web: when displaying a user's posts, limit the query to 1000

so the page doesn't exceed CPU limit


svn path=/trunk/boinc/; revision=24127
This commit is contained in:
David Anderson 2011-09-03 04:24:01 +00:00
parent 3eabc15a84
commit 60f0b3ed4e
2 changed files with 8 additions and 1 deletions

View File

@ -5582,3 +5582,10 @@ David 2 Sept 2011
lib/
proc_control.cpp
procinfo_win.cpp
David 2 Sept 2011
- web: when displaying a user's posts, limit the query to 1000
so the page doesn't exceed CPU limit
html/user/
forum_user_posts.php

View File

@ -72,7 +72,7 @@ if ($logged_in_user) {
}
page_head(tra("Posts by %1", $user->name));
$posts = BoincPost::enum("user=$userid order by id desc");
$posts = BoincPost::enum("user=$userid order by id desc limit 1000");
$n = 0;
start_table();
$options = get_output_options($logged_in_user);