Support

Account

Home Forums Feature Requests Autoload options

Solving

Autoload options

    • TripleM

    • August 18, 2014 at 1:27 pm

    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?

    • TripleM

    • February 11, 2015 at 11:05 am

    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

    • Elliot

    • June 24, 2015 at 9:50 am

    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!

    • Elliot

    • June 24, 2015 at 12:19 pm

    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.

    • Ivan

    • June 30, 2015 at 1:56 am

    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

    • Elliot

    • June 30, 2015 at 10:48 am

    Hi @ipaulin

    This feature has not yet been released. Stay tuned for 5.2.8

    Thanks
    E

  • 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/

    • TripleM

    • July 28, 2015 at 11:43 am

    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/

Viewing 11 posts - 1 through 11 (of 11 total)

The topic ‘Autoload options’ is closed to new replies.

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 Cookie Policy. If you continue to use this site, you consent to our use of cookies.