[wp-trac] [WordPress Trac] #25015: Options cache updated by update_option() and add_option() even on failure

WordPress Trac noreply at wordpress.org
Sat Aug 24 14:07:46 UTC 2013


#25015: Options cache updated by update_option() and add_option() even on failure
--------------------------+------------------
 Reporter:  jdgrimes      |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  3.7
Component:  Cache         |     Version:  2.2
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |
--------------------------+------------------
Changes (by jdgrimes):

 * keywords:   => has-patch


Comment:

 That patch moves the cache updating to inside of the if-success blocks for
 these two functions. I'm not sure if that is the best approach. Should we
 be invalidating the cache in some way if the add/update queries fail, or
 should we assume that the cache is still reliable? This patch does the
 latter.

--
Ticket URL: <http://core.trac.wordpress.org/ticket/25015#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list