• koullis

    (@koullis)


    after 6.6 update i keep getting this health issue

    1 critical issue

    Autoloaded options could affect 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 1922 autoloaded options (size: 2 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.

    • This topic was modified 3 months ago by koullis.
Viewing 6 replies - 16 through 21 (of 21 total)
  • dominikw1980

    (@dominikw1980)

    @kelly127 Hey. This code is not meant to be added to functions.php.

    It′s a plugin.

    Create the directory: public_html/wp-content/plugins/custom-autoload-options-limit/

    In this directory, create a file named custom-autoload-options-limit.php
    and insert the code there.

    After that you can activate the plugin in wordpress, then you will find it under wordpress-settings…

    Please let me know if it works…

    THANK YOU @misselenat – for your excellent tip showing how to modify the autoloaded options limit in the wp-admin file (that you specified more precisely in your comment above in this thread). Yes, I understand this is a temporary fix that will get overwritten every time WordPress is updated, but – I like that. I want to know when WORDPRESS corrects this issue in a future update – versus my including code in functions.php that could sit there long past its being needed. I much prefer that WordPress provides the actual long term fix. Anyway, dear @misselenat, you’re the best!

    • This reply was modified 1 week, 1 day ago by susantau.

    Thank you very much, @susantau! I’m really glad you found my tip useful – and you are right about wanting to be aware of any future fixes by WordPress. I opted for a fix via custom plugin (using @highlandmoss’ code) but will check if things have changed from time to time (by simply deactivating the custom plugin). This way I won’t have to manually change the value after every WP update, much to the joy of my lazy self ?? Thank you so much once again for your kind comment, I truly appreciate it!

    gab81

    (@gab81)

    Confirm the “Autoloaded options could affect performance” error in site health is still happening.

    Thank you @highlandmoss !

    I added your code to the Child theme’s function.php and it works perfectly.
    This way even after WP upgrades the code will stay in place, I don’t advice anyone to edit the core files, specially the function.php.
    Best is to install the Child theme and then edit the function.php

    wp-content/themes/X-Child-Theme/function.php

    No more notice on wordpress tools/site health

    Thanks

    • This reply was modified 3 days, 23 hours ago by Dewdan.

    Thanks guys, but has this been reported to WP core devs? they could/should fix that themselves without doing this extra effort no? ??

Viewing 6 replies - 16 through 21 (of 21 total)
  • You must be logged in to reply to this topic.