• Hi,

    Site Health reported a critical issue “Autoloaded options could affect performance”.

    I installed and ran the plugin Autoload Checker which shows the following

    I read that I could set auto for _transient_dirsize_cache to “no”, but I can’t find it in the database or the plugin Option Optimizer. How can I fix this?

    Best regards,
    Evert

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter eheijns

    (@eheijns)

    Moderator threadi

    (@threadi)

    No, I would advise against changing anything here. The setting belongs to WordPress and should not be manipulated.

    Instead, you could change the threshold value for this warning. This is because it is not really relevant for every project and only affects performance in the nanosecond range, if at all. There is a hook for this threshold: https://developer.wordpress.org/reference/hooks/site_status_autoloaded_options_size_limit/

    You could change it with this hook:

    add_filter( 'site_status_autoloaded_options_size_limit', function() { return 1000000; } );
    Thread Starter eheijns

    (@eheijns)

    Hi! Thanks for your reply. Can I then perhaps run the database optimizer from Litespeed Cache to remove the transients? Perhaps this will reduce the size as well?

    Moderator threadi

    (@threadi)

    Yes and no. The transients may be part of it, but deleting them does not necessarily remove the message.

    If you still want to try it, create a backup and then perform the cleanup.

    Thread Starter eheijns

    (@eheijns)

    OK, thanks!

    Thread Starter eheijns

    (@eheijns)

    Still, Ahref is complaining about slow pages while I use Litespeed Cache with QUIC CDN. That’s why I suspected autoload issue’s. On the other hand, I also realize it could’ve arisen by other causes.

    • This reply was modified 9 months, 1 week ago by eheijns.
    • This reply was modified 9 months, 1 week ago by eheijns.
Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘How to set autoload _transient_dirsize_cache to “no”’ is closed to new replies.