Opened 14 years ago
Closed 14 years ago
#12782 closed defect (bug) (fixed)
delete_transient does not delete _transient_timeout_name
Reported by: | neoxx | Owned by: | 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)
Note: See
TracTickets for help on using
tickets.
Seems if transients expire their respective timeouts are removed. This only occurs when transients are specifically deleted.