[wp-trac] [WordPress Trac] #37517: additional argument for GET_OPTION and UPDATE_OPTION

WordPress Trac noreply at wordpress.org
Fri Jul 29 19:36:21 UTC 2016


#37517: additional argument for GET_OPTION and UPDATE_OPTION
--------------------------------+-----------------------------
 Reporter:  tazotodua           |      Owner:
     Type:  defect (bug)        |     Status:  new
 Priority:  normal              |  Milestone:  Awaiting Review
Component:  Options, Meta APIs  |    Version:
 Severity:  normal              |   Keywords:
  Focuses:                      |
--------------------------------+-----------------------------
 on my plugin/settings page, at first i get an option, then on the same
 request i might update that option.

 but the option is cached, and updating is not reflected correctly.
 for that, i think, there should be additional argument:

 get_option(name, default,  $get_fresh=false)
 update_option(name,value, autoload,  $get_fresh=false);

 in case i set $get_fresh to true, it should overcome cache and make new
 request, not getting the cached values.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/37517>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list