[wp-trac] [WordPress Trac] #21330: Allow filtering of expiration in set_transient()

WordPress Trac noreply at wordpress.org
Tue Oct 6 16:38:19 UTC 2015


#21330: Allow filtering of expiration in set_transient()
------------------------------+------------------------
 Reporter:  wpsmith           |       Owner:  chriscct7
     Type:  enhancement       |      Status:  reopened
 Priority:  normal            |   Milestone:  4.4
Component:  Cache API         |     Version:
 Severity:  normal            |  Resolution:
 Keywords:  has-patch commit  |     Focuses:
------------------------------+------------------------

Comment (by SergeyBiryukov):

 Looking at the [https://irclogs.wordpress.org/chanlog.php?channel
 =wordpress-dev&day=2014-03-04&sort=asc#m803611 IRC discussion],
 `pre_set_transient_{$transient}_expiration` is still a potential namespace
 conflict, which we were trying to avoid.

 Let's go with `expiration_of_(site_)transient_{$transient}`.

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


More information about the wp-trac mailing list