Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
bobbingwide opened this issue Jan 7, 2017 · 0 comments
Assignees

Comments

@bobbingwide
Copy link
Owner

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.

@bobbingwide bobbingwide self-assigned this Jan 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant