• Resolved OllieJones

    (@olliejones)


    I’m finishing up a new plugin that almost never needs access to its options (from wp_options).

    Is there a way I can avoid autoloading the options from that table? Can I create the options object with some sort of “autoload” => false parameter.

    I’m a bit compulsive about avoiding pointless extra work for webservers and their databases.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author miunosoft

    (@miunosoft)

    Hi,

    If you don’t create a form with the framework, you don’t have to worry about it. The framework never inserts a record into the options table unless the user submits the form.

    If you have some pages with a form created with the framework and sill don’t want to autload those records from the options table, it’s not supported at the moment, sorry.

    If you need that functionality, please create a topic in the repository issue tracker. I might be able to add an option for it.

    Thanks.

    Thread Starter OllieJones

    (@olliejones)

    It’s not that important. It’s just that I’m working on a database optimization plugin and the idea of adding a useless autoloaded row to wp_options smarts a little.

    Never mind. Thanks for the answer.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Can I make options so they don’t autoload?’ is closed to new replies.