[wp-trac] [WordPress Trac] #64553: Add parameter to delete_expired_transients() for custom transients

WordPress Trac noreply at wordpress.org
Thu Jan 29 19:50:22 UTC 2026


#64553: Add parameter to delete_expired_transients() for custom transients
----------------------------------------+------------------------------
 Reporter:  Guido07111975               |       Owner:  (none)
     Type:  feature request             |      Status:  new
 Priority:  normal                      |   Milestone:  Awaiting Review
Component:  Database                    |     Version:  6.9
 Severity:  normal                      |  Resolution:
 Keywords:  has-patch needs-unit-tests  |     Focuses:
----------------------------------------+------------------------------
Changes (by westonruter):

 * keywords:  has-patch => has-patch needs-unit-tests


Comment:

 The `$name` parameter should be changed to something like `$prefix`. The
 docs should also make it clear that this only applies when not using an
 external object cache or if `$force_db` is enabled.

 Also, please open a pull request instead of attaching patches. This is
 easier for review and it runs automated tests.

 Speaking of which, this will need unit tests.

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


More information about the wp-trac mailing list