simply-static
simply-static copied to clipboard
everytime call `create_or_update_table()`
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