-
-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
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
Speeds up the loading of posts with lots of comments #477
Conversation
Looks good on my phone...want to look in front of a computer. What prompted it? |
On pages with more than 100 comments I ran into a Webserver timeout on notiz.blog. That happens for example on my catch all page that shows all homepage mentions! |
That explains it .. I've never been that popular. |
Here is the example: https://notiz.blog/contact/ |
return; | ||
} | ||
|
||
if ( ! is_singular() ) { | ||
if ( ! empty( $query->query_vars['type__in'] ) ) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't we exclude any type specific search? Not just in? Like type__not_in ? or even just type?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good point!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Made one suggestion but looks good.
No description provided.