Opened 16 years ago
Closed 16 years ago
#12782 closed defect (bug) (fixed)
delete_transient does not delete _transient_timeout_name
| Reported by: | neoxx | Owned by: | ryan |
|---|---|---|---|
| Priority: | normal | Milestone: | 3.0 |
| Component: | Cache API | Version: | 2.9.2 |
| Severity: | normal | Keywords: | transient, delete_transient |
| Cc: | Focuses: |
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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Seems if transients expire their respective timeouts are removed. This only occurs when transients are specifically deleted.