This topic has 13 replies, 3 voices, and was last updated 1 months ago ago by Andrew Mitchell
Dear sir
good day to you!
please guide how to resolve this problem
here is the screenshot
https://snipboard.io/yi3J1x.jpg
here is the detail
1 critical issue
Critical issues are items that may have a high impact on your sites performance or security, and resolving these issues should be prioritised.
Autoloaded options could affect performance
Performance
Autoloaded options are configuration settings for plugins and themes that are automatically loaded with every page load in WordPress. Having too many autoloaded options can slow down your site. Your site has 1068 autoloaded options (size: 1 MB) in the options table, which could cause your site to be slow. You can review the options being autoloaded in your database and remove any options that are no longer needed by your site.
More info about optimising autoloaded options
Dear @khurram virk,
Please try with this solution: https://www.8theme.com/topic/autoload-settings-can-affect-performance/#post-420458.
Hope it helps!
dear sir
good day to you!
thanks for the solution, should we add the following code ONLY in global custom CSS.
add_filter( ‘wp_max_autoloaded_option_size’, ‘my_max_autoload_option_size’ );
function my_max_autoload_option_size( $size ) {
// Reduce the threshold for large sizes to 100K (Default is 150K).
return 100000;
}
waiting for your confirmation.
thank you
Hi @khurram virk,
This custom code should be added under functions.php file locates in your child theme:
add_filter( 'wp_max_autoloaded_option_size', 'my_max_autoload_option_size' );
function my_max_autoload_option_size( $size ) {
// Reduce the threshold for large sizes to 100K (Default is 150K).
return 100000;
}
Best regards,
8Theme Team.
dear sir
greetings!
we dont have child theme on this site, can we use in main theme’s function file.
please confirm.
thank you
Dear Khurram Virk,
We hope this message finds you well.
We kindly request that you refrain from adding custom code directly to the parent theme, as any changes made will be lost with each new update.
Instead, we recommend using the following plugin to safely insert custom code: [Insert Headers and Footers Plugin](https://wordpress-org.translate.goog/plugins/insert-headers-and-footers/).
We trust this will be helpful. Should you have any further questions or need assistance, please don’t hesitate to reach out.
Best regards,
8Theme Team
dear sir
greetings!
we have installed the insert headers and footers plugin, please let us know, where we have to paste either header or body or footer.
thank you
Dear Khurram Virk,
We hope this message finds you well.
Could you kindly resend the login URL, as the previous one has already expired? Once received, we will proceed with placing the custom code for you.
Thank you for your attention to this matter.
Best regards,
8Theme Team
dear sir
good day to you!
PC
THANKS
Dear Khurram Virk,
We hope this message finds you well.
We apologize for any confusion caused earlier. The correct plugin we are referring to can be found here: [Screenshot Link](https://prnt.sc/My6ANgFhi3fV).
However, we are currently encountering a restriction, as shown in this screenshot: [Screenshot Link](https://prnt.sc/62N2AScSLjQN). Could you kindly assist us in disabling this restriction?
Here is the relevant link for your reference: [https://***feandsecureksa.com/wp-admin/admin.php?page=wpcode](https://***feandsecureksa.com/wp-admin/admin.php?page=wpcode).
Thank you in advance for your support.
Best regards,
8Theme Team
dear sir
greetings!
you can access now, it is disabled now.
thank you
Hi @khurram virk,
We’ve inserted the code snippet for you:
If you need anything else, please let us know.
Best regards,
8Theme Team
Dear khurram virk,
We hope you’re reveling in the experience our theme brings! Your enthusiasm is what fuels our passion. Would you be so kind as to channel that energy into a 5-star rating on ThemeForest? Your feedback is the spark that lights our way!
Click here to spread the love: https://themeforest.net/downloads
Thank you for being an integral part of our journey!
Best Regards,
The 8Theme Team
The issue related to '‘SITEHEALTH PERFORMANCE CRITICAL ISSUE: Autoloaded options could affect performance’' has been successfully resolved, and the topic is now closed for further responses