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

WordPress Trac noreply at wordpress.org
Tue Jan 27 17:18:21 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        |     Focuses:
-----------------------------+------------------------------

Comment (by solankisoftware):

 Thanks for testing and confirming the issue.

 Yes, the current behavior removes all expired transients, which makes it
 difficult for plugins/themes to safely clean up only their own data.

 The proposed scoped parameter allows targeted cleanup by transient name or
 prefix, keeping the default behavior unchanged while enabling safer,
 plugin-specific cleanup when needed.

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


More information about the wp-trac mailing list