We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
总页数的统计不对
The text was updated successfully, but these errors were encountered:
def excellent @topics = Topic.excellent.recent.fields_for_list.includes(:user).paginate(page: params[:page], per_page: 15, total_entries: 500) drop_breadcrumb(t("topics.topic_list.excellent")) set_seo_meta([t("topics.topic_list.excellent"),t("menu.topics")].join(" » ")) render :action => "index" end
其实是从第9页就没有了,因为总数设置的是500
Sorry, something went wrong.
对呀,为啥会有这么弱智的bug。。。。 哎
这个不一定是Bug,应该是考虑性能与功能之后的一个权衡决定。如果加上总页数,需要计算一遍总页数,不仅消耗了时间,并可能导致缓存失效,减低缓存命中率。不知道是不是这样 @huacnlee
No branches or pull requests
总页数的统计不对
The text was updated successfully, but these errors were encountered: