[wp-trac] [WordPress Trac] #37178: Add $cache_only parameter to get_option

WordPress Trac noreply at wordpress.org
Mon Apr 24 13:03:34 UTC 2023


#37178: Add $cache_only parameter to get_option
-------------------------------------------------+-------------------------
 Reporter:  joostdevalk                          |       Owner:  (none)
     Type:  enhancement                          |      Status:  new
 Priority:  normal                               |   Milestone:  Awaiting
                                                 |  Review
Component:  Options, Meta APIs                   |     Version:
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch dev-feedback needs-unit-   |     Focuses:
  tests                                          |  performance
-------------------------------------------------+-------------------------

Comment (by spacedmonkey):

 I am not sure I see the benefit of skipping the database lookup here.
 There are enough filters that we can bypass the database lookup if needed.

 I do not want to add another parameter to `get_option` if we can avoid it.

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


More information about the wp-trac mailing list