Is it safe to not autoload the option tablepress_tables?
-
Hi there,
I have quite a lot of tables (about 20k), and WordPress moans that I autoload too many options. I should look if there are options I can “not” autoload so memory consumption goes below 800 KB.
So I did the Google and found a query that shows me the biggest autoload options, and on top was “tablepress_tables” (350 KB) (followed by “_transient_dirsize_cache” (280 KB).
I think I know what this option is for, but I wonder if it would be safe to set autoload to off for it.
Safe as in: Can the plugin survive with it off? And: Will the plugin not turn it on again?
I’ve grepped through the code, and I don’t think I saw that it’ll autoload this option with an explicit priority. So I guess maybe that it’s set to “yes” is grandfathered from some older version?
According to the WordPress dev doc, not specifying the autoload priority will default to “auto” and thus let WP decide whether or not to autoload the option. So I guess it should be safe. Question mark?
In any case, thank you for your work and happy holidays. 🙂
You must be logged in to reply to this topic.