Make WordPress Core

Opened 14 years ago

Closed 14 years ago

#12782 closed defect (bug) (fixed)

delete_transient does not delete _transient_timeout_name

Reported by: neoxx's profile neoxx Owned by: ryan's profile ryan
Milestone: 3.0 Priority: normal
Severity: normal Version: 2.9.2
Component: Cache API Keywords: transient, delete_transient
Focuses: Cc:

Description

Hi,

I currently reworked one of my plugins to use a transient instead of an option for caching. - Now, I also wanted to provide a clean uninstall, thus not leaving the transient in the options-table.

Obviously, the transient itself can be removed from the database by the usage of delete_transient($name), though a _transient_timeout_name remains.

Is there a particular reason for leaving this value? I know, that it is not auto-loaded, but imho still garbage...

Berny

Change History (2)

#1 @dd32
14 years ago

Seems if transients expire their respective timeouts are removed. This only occurs when transients are specifically deleted.

#2 @dd32
14 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [13911]) Delete _transient_timeout_$name and _site_transient_timeout_$name when specifically deleting transients. Fixes #12782

Note: See TracTickets for help on using tickets.