[wp-trac] [WordPress Trac] #33561: get_transient() will always return the value of a broken transient

WordPress Trac noreply at wordpress.org
Thu Aug 27 20:01:03 UTC 2015


#33561: get_transient() will always return the value of a broken transient
--------------------------------+------------------------------
 Reporter:  deconf              |       Owner:
     Type:  defect (bug)        |      Status:  new
 Priority:  normal              |   Milestone:  Awaiting Review
Component:  Options, Meta APIs  |     Version:  4.3
 Severity:  normal              |  Resolution:
 Keywords:  needs-unit-tests    |     Focuses:
--------------------------------+------------------------------
Changes (by ocean90):

 * keywords:  needs-unit-tests has-patch => needs-unit-tests


Comment:

 No revert please. `get_site_transient()` is doing the same. If we want to
 handle broken transients we could set `$value` to `false` if `$timeout` is
 `false`.

 > I can't tell for sure what's the cause of those timeouts getting
 deleted,
 That's the real issue and should be investigated.

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


More information about the wp-trac mailing list