[wp-trac] [WordPress Trac] #61296: Add "force" parameter to get_option and get_transient

WordPress Trac noreply at wordpress.org
Thu Sep 5 19:14:42 UTC 2024


#61296: Add "force" parameter to get_option and get_transient
--------------------------------+------------------------------
 Reporter:  juvodesign          |       Owner:  (none)
     Type:  enhancement         |      Status:  reopened
 Priority:  normal              |   Milestone:  Awaiting Review
Component:  Options, Meta APIs  |     Version:
 Severity:  normal              |  Resolution:
 Keywords:  has-patch           |     Focuses:
--------------------------------+------------------------------

Comment (by azaozz):

 > i think it would be reasonable to add the force parameter and pass it
 through to wp_cache_get

 Sorry bit I don't see how that would be particularly useful. Could you
 explain the use case(s) for it? Also thinking there may be a chances to
 run into some DB write/read problems for options that have been just set,
 especially when the DB is replicated?

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/61296#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list