I am trying to improve the performance of a wordpress based blog. I am looking at wp_options table and am thinking to set the column auto_load to ‘no’.
Does it have any side-effect on the site itself ? Does it improve the performance of the site ?
I am trying to improve the performance of a wordpress based blog. I am looking at wp_options table and am thinking to set the column auto_load to ‘no’.
Does it have any side-effect on the site itself ? Does it improve the performance of the site ?
Comments are closed.
It depends on content and context.
Options with
autoload = yes
are loaded very early, all in one query. This is pretty fast, but it might be too early when an options contains a serialized object whose class isnât loaded yet.Options with
autoload = no
are loaded whenget_option()
is called.Use
yes
when â¦and
Use
no
in all other cases, or refactor the code to make it âyes-compatibleâ.You have to weight the number of database requests against the size of the transferred content. When in doubt, measure both.