simply-static icon indicating copy to clipboard operation
simply-static copied to clipboard

everytime call `create_or_update_table()`

Open imjlk opened this issue 5 months ago • 1 comments

After installing the latest version of the plugin, I noticed that the page speed was slower than before.

Inspect with query monitor plugin, i found that create_or_update_table function is calling everytime.

The changes in this commit make sense, but the problem occurs when it checks for the first time:

		$version = self::$options->get( 'version' );


		// New installation, set default options.
		if ( null === $version ) {
			Page::create_or_update_table();
			self::set_default_options();
		} else {

The default options are set, but the version is missing in the options array. So it keeps getting called because the version is not stored in the wp_options table.

I hope this information helps in resolving the issue. Thank you for your attention, and I look forward to any updates

imjlk avatar Sep 23 '24 16:09 imjlk