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

Improve options usage #13523

Open
swissspidy opened this issue Dec 8, 2023 · 0 comments · May be fixed by #13700
Open

Improve options usage #13523

swissspidy opened this issue Dec 8, 2023 · 0 comments · May be fixed by #13700
Labels
P2 Should do soon Type: Enhancement New feature or improvement of an existing feature Type: Performance Performance related issues and enhancements.

Comments

@swissspidy
Copy link
Collaborator

swissspidy commented Dec 8, 2023

Task Description

Screenshot 2023-12-08 at 13 32 48

Look into how these queries can be optimized/avoided, e.g. using wp_prime_option_caches or wp_prime_option_caches_by_group

From Jonny:

	public function get_setting( string $key, $default_value = false ) {
		if ( function_exists('wp_prime_option_caches_by_group') & ! $this->option_loaded ) {
			wp_prime_option_caches_by_group(self::SETTING_GROUP);
			wp_prime_option_caches_by_group(self::SETTING_GROUP_EXPERIMENTS);
			$this->option_loaded = true;
		}
@swissspidy swissspidy added Type: Enhancement New feature or improvement of an existing feature Type: Performance Performance related issues and enhancements. labels Dec 8, 2023
@swissspidy swissspidy added the P3 Nice to have label Jan 10, 2024
@swissspidy swissspidy added P2 Should do soon and removed P3 Nice to have labels May 15, 2024
@Swanand01 Swanand01 linked a pull request May 22, 2024 that will close this issue
7 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P2 Should do soon Type: Enhancement New feature or improvement of an existing feature Type: Performance Performance related issues and enhancements.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant