Debugging WordPress

The basic technique of logging queries is that if SAVEQUERIES constant is defined to be true (it’s not by default for performance reasons) then $wpdb->queries will keep the log of queries performed. There isn’t anything on top of this that WordPress natively does. There are plenty of plugins around which work either by interpreting this … Read more

Preloader for a WordPress Site

You will want to put the code in the child theme, otherwise an update to the parent theme will erase it. You want the loader to be a part of the page as the document is first loaded by the browser, then use javascript to detect when the images are finished loading and remove the … Read more

WordPress Caching On Demand

There is no explicit mechanism for disk based caching. If you are writing a plugin or theme you intend to distribute you should be careful with allocating a folder for it, probably better to have some kind of an option for a user to configure that location. If this is something for a specific site, … Read more