[wp-trac] [WordPress Trac] #22807: Updating a non-expiring transient with a new expiry date does not make it expire
WordPress Trac
noreply at wordpress.org
Fri Dec 7 11:38:19 UTC 2012
#22807: Updating a non-expiring transient with a new expiry date does not make it
expire
-----------------------------+--------------------------
Reporter: bersbers | Type: defect (bug)
Status: new | Priority: normal
Milestone: Awaiting Review | Component: General
Version: 3.4.2 | Severity: normal
Keywords: |
-----------------------------+--------------------------
Consider this:
set_transient( 'Bug', 'v1');
set_transient( 'Bug', 'v2', 10 );
The second line will update 'Bug' with 'v2', but will not set autoload to
'no'. Hence, 'Bug' does never expire, and you can get its value 'v2'
infinitely using
echo get_transient( 'Bug' );
--
Ticket URL: <http://core.trac.wordpress.org/ticket/22807>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list