delete_expired_transients
delete_expired_transients ( $force_db = false )
Parameters:- (bool) force_db Optional. Force cleanup to run against the database even when an external object cache is used.
Defined at: - Introduced in WordPress: 4.9.0
- Deprecated in WordPress: —
Description
Deletes all expired transients.Note that this function won't do anything if an external object cache is in use.
The multi-table delete syntax is used to delete the transient record
from table a, and the corresponding transient_timeout record from table b.