mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-12 12:50:28 +00:00
Transients: After [41963], add missing cron task for delete_expired_transients().
Props dlh. Fixes #41699. git-svn-id: https://develop.svn.wordpress.org/trunk@42008 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -820,13 +820,13 @@ function set_transient( $transient, $value, $expiration = 0 ) {
|
||||
* Deletes all expired transients.
|
||||
*
|
||||
* The multi-table delete syntax is used to delete the transient record
|
||||
* from table a, and the corresponding transient_timeout record from table b. +
|
||||
* from table a, and the corresponding transient_timeout record from table b.
|
||||
*
|
||||
* @since 4.9.0
|
||||
*
|
||||
* @param bool $force_db Optional. Force cleanup to run against the database even when an external object cache is used.
|
||||
*/
|
||||
function delete_expired_transients( $force_db = false) {
|
||||
function delete_expired_transients( $force_db = false ) {
|
||||
global $wpdb;
|
||||
|
||||
if ( ! $force_db && wp_using_ext_object_cache() ) {
|
||||
|
||||
Reference in New Issue
Block a user