page loading time of a cached page
page loading time of a cached page
page loading time of a cached page
It’s everything OK with get_posts() since it creates the single WP_Query instance per call. You can check the query by creating that instance: <?php $test_query = new WP_Query( array( ‘post_type’ => ‘post’, ‘posts_per_page’ => -1, // any number, does not matter ‘post__in’ => $ids, // should be an array! ) ); echo $test_query->request; Adding ‘meta_query’ … Read more
WordPress Script stops suddenly
Is it a good idea to improve meta query performance by adding tax query?
Native Lazy Loading on Safari
Serialized wp_watevermeta data causes performance problems only if you need to search for it. For example if you want to find all the red cars it’s faster to use a WP_Meta_Query operation than it is to read each car’s deserialized metadata and examine the data structure for the color. It’s slow, sometimes painfully slow, to … Read more
Options are persistent. You can set them when you activate your theme and then just use them. There’s no need to change them when rendering any particular page unless your logic actually changes them. And doing so may cause confusion. For example, lots of changes to image and thumbnail default sizes will make your Media … Read more
TTFB increased for no reason
I don’t see any problem with passing post__not_in to the query. Yeh, it might not look like a clever code, but sometimes the only way to implement some functionality is with ugly code. Regarding the VIP page… its a meh, a specific edge case which might not fit your situation (are you doing a widget … Read more
When you run a search (you call it a query) WordPress must use its DBMS (MariaDB / MySQL) to examine the entire text of every post, page, and user on your site. That takes time. There are some plugins out there to make search more efficient, but it is still work for your site to … Read more