bobbingwide / oik-types

oik custom content type manager
http://www.oik-plugins.com/oik-plugins/oik-types/
GNU General Public License v2.0
1 stars 0 forks source link

Eliminate queries to the wp_options table for 'missing' options fields #6

Open bobbingwide opened 7 years ago

bobbingwide commented 7 years ago

oik-types makes use of a range of options fields such as bw_taxonomies. When WordPress starts up it loads all options which are defined with autoload = 'yes'. This is OK as long as the options exist, even if they're just empty. But if they're missing then WordPress will perform another SQL query to attempt to load them. This is an overhead we don't need.

Workaround

Define some dummy taxonomies and relationships and then delete them. This will create empty entries which will be autoloaded.

Now we need to see if this does actually make the system a little faster.