mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
FEATURE: topics per page should not be configurable
Can lead to severe performance issues
This commit is contained in:
parent
ae16186100
commit
4cd9243888
17 changed files with 1 additions and 24 deletions
|
@ -157,7 +157,7 @@ class TopicQuery
|
|||
protected
|
||||
|
||||
def per_page_setting
|
||||
@options[:slow_platform] ? SiteSetting.slow_topics_per_page : SiteSetting.topics_per_page
|
||||
@options[:slow_platform] ? 30 : 15
|
||||
end
|
||||
|
||||
def create_list(filter, options={}, topics = nil)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue