You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a WP_Query fetches X amount of posts. If there is a processing in the frontend of the queried posts to fetch their permalinks, each of them will have their language fetched. LangInterface::get_post_language has a transient, but if there is no transient for the posts, there will be a lot of different separate queries to get each post's language.
In order to combat this, upon a successful WP_Query for posts, we can warmup these transients with the post languages by doing one query for all of them.
The text was updated successfully, but these errors were encountered:
When a WP_Query fetches X amount of posts. If there is a processing in the frontend of the queried posts to fetch their permalinks, each of them will have their language fetched.
LangInterface::get_post_language
has a transient, but if there is no transient for the posts, there will be a lot of different separate queries to get each post's language.In order to combat this, upon a successful WP_Query for posts, we can warmup these transients with the post languages by doing one query for all of them.
The text was updated successfully, but these errors were encountered: