How to increase load time of an archive/search page (WP_Query)
How to increase load time of an archive/search page (WP_Query)
How to increase load time of an archive/search page (WP_Query)
WordPress plugin overloading with tmp tables
To run a plugin only when it is needed the plugin author has to identify the pages where the code actually does something. WordPress offers a surprisingly simple way to do that: the global variable $pagenow. It is set before a plugin is called in wp-includes/vars.php. In a spam block plugin I have written recently … Read more
how to use shortinit in wordpress
How to analyze wordpress plugin performance
Checkout this page from GoDaddy: http://support.godaddy.com/help/article/7360/using-the-wordpress-plugin-performance-profiler-p3 It gives a pretty good overview of the P3 Plugin Profiler and should be able to answer your questions. There’s definitely error involved, and it should really just be used as a guideline.
It depends on content and context. Options with autoload = yes are loaded very early, all in one query. This is pretty fast, but it might be too early when an options contains a serialized object whose class isn’t loaded yet. Options with autoload = no are loaded when get_option() is called. Use yes when … Read more
Slow wp-admin due to “SELECT DISTINCT post_mime_type FROM wp_posts WHERE post_type=”attachment””
As per WP Code Snippet blog, it looks like this is one way: Add this code snippet to your functions.php file. // add async and defer to javascripts function wcs_defer_javascripts ($url) { if (strpos($url, ‘.js’) === FALSE) { return $url; } if (strpos($url, ‘jquery.js’)) { return $url; } return “$url’ async onload=’myinit()”; } add_filter(‘clean_url’, ‘wcs_defer_javascripts’, … Read more
I’m currently dealing with a site using W3TC plugin and that plugin seems to provide a custom database handler which actually caches queries to memcache. Give that a try. Sidenote: Just make sure, in case you are using multiple production servers, to use a shared memcache server and that you don’t cache those queries on … Read more