Skip to content
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

Merged
merged 1 commit into from
Jul 5, 2024

Conversation

pfefferle
Copy link
Owner

No description provided.

@pfefferle pfefferle requested a review from dshanske June 7, 2024 14:16
@dshanske
Copy link
Collaborator

dshanske commented Jun 7, 2024

Looks good on my phone...want to look in front of a computer. What prompted it?

@pfefferle
Copy link
Owner Author

pfefferle commented Jun 7, 2024

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!

@dshanske
Copy link
Collaborator

dshanske commented Jun 7, 2024

That explains it .. I've never been that popular.

@pfefferle
Copy link
Owner Author

Here is the example: https://notiz.blog/contact/

return;
}

if ( ! is_singular() ) {
if ( ! empty( $query->query_vars['type__in'] ) ) {
Copy link
Collaborator

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?

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good point!

Copy link
Collaborator

@dshanske dshanske left a 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.

@dshanske dshanske merged commit 7ab2218 into main Jul 5, 2024
19 checks passed
@dshanske dshanske deleted the improve/performance branch July 5, 2024 02:17
@pfefferle pfefferle restored the improve/performance branch July 8, 2024 19:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants