Home › Forums › Feature Requests › Autoload options
In the 4.3.3 changelog:
Core: Added new logic to set ‘autoload’ to ‘off’ on all values saved to the wp_options table to help improve load speed
This improves load speed if the option fields you are using aren’t needed on every page load.
However, it’s quite common that an options page is used for global options, such as footer text that does appear on every page. In this case, autoload=off slows down the page load, since these options need to be queried one by one.
Would it be possible to add a checkbox when creating fields that allows you to choose yourself whether options should autoload or not?
Bump. Custom fields stored as options are still generating multiple SQL queries per get_field call due to the lack of autoload which is very bad.
If a per-option setting isn’t possible, then the plugin should go back to defaulting to autoload.
Another person with the same request: http://support.advancedcustomfields.com/forums/topic/options-as-autoload-true/
Bump. Please add the ability to control if an option is auto loaded.
Thanks for the feature request. I will bring this to the attention of the developer.
~JH
Hi guys
Thanks for the feature request, I like it.
There is no way to optimize the loading without performing a wildcard LIKE sql query to get all options values, so I think the best solution here is to add a new setting which allows the auto_load to be set to true.
I’ll add this into the next version!
Hi guys
Just wanted to let you know I have added a new setting for options pages called ‘autoload’. When set to true
, values saved to the DB will have autoload set to ‘yes’.
Works great, and thanks again for the idea!
please note that existing values will not have their autoload settings changed, only new values.
Hi Elliot,
I use the latest ACF Pro 5.2.7 plugin, but I don’t see “autoload” setting.
Am I missing something?
Thanks,
Ivan
E, A related topic about taxonomy fields stored in the options table. http://support.advancedcustomfields.com/forums/topic/cache-acf-fields-stored-in-the-wp_options-table/
I can’t seem to find this setting anywhere in 5.2.8 – where is it meant to appear?
This is new option when creating an options page. See the documentation here http://www.advancedcustomfields.com/resources/acf_add_options_page/
The topic ‘Autoload options’ is closed to new replies.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.