Performance issues
-
Hi,
You have set the autoload option to false on all your options, see screenshot:
https://dl.dropboxusercontent.com/u/2758854/mainwp-problems.pngWhy is this a problem you might ask? Well, non-autoloaded options required a separate SQL call every time you run get_option(), so each page load looks like this:
https://dl.dropboxusercontent.com/u/2758854/mainwp-queries.pngWhat you should be doing is using $autoload = true when registering your options, that way they are loaded automatically as part of the WP bootstrap process and require no further queries when called.
I’m not saying the performance impact is huge, but it is causing 8-10 additional queries on each front-end page load.
- The topic ‘Performance issues’ is closed to new replies.