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:
parent
7329816301
commit
8d56eff073
|
@ -87,6 +87,11 @@ auth_redirect();
|
||||||
if ( ! wp_next_scheduled( 'wp_scheduled_delete' ) && ! wp_installing() )
|
if ( ! wp_next_scheduled( 'wp_scheduled_delete' ) && ! wp_installing() )
|
||||||
wp_schedule_event(time(), 'daily', 'wp_scheduled_delete');
|
wp_schedule_event(time(), 'daily', 'wp_scheduled_delete');
|
||||||
|
|
||||||
|
// Schedule Transient cleanup.
|
||||||
|
if ( ! wp_next_scheduled( 'delete_expired_transients' ) && ! wp_installing() ) {
|
||||||
|
wp_schedule_event( time(), 'daily', 'delete_expired_transients' );
|
||||||
|
}
|
||||||
|
|
||||||
set_screen_options();
|
set_screen_options();
|
||||||
|
|
||||||
$date_format = __( 'F j, Y' );
|
$date_format = __( 'F j, Y' );
|
||||||
|
@ -94,9 +99,6 @@ $time_format = __( 'g:i a' );
|
||||||
|
|
||||||
wp_enqueue_script( 'common' );
|
wp_enqueue_script( 'common' );
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* $pagenow is set in vars.php
|
* $pagenow is set in vars.php
|
||||||
* $wp_importers is sometimes set in wp-admin/includes/import.php
|
* $wp_importers is sometimes set in wp-admin/includes/import.php
|
||||||
|
|
|
@ -820,7 +820,7 @@ function set_transient( $transient, $value, $expiration = 0 ) {
|
||||||
* Deletes all expired transients.
|
* Deletes all expired transients.
|
||||||
*
|
*
|
||||||
* The multi-table delete syntax is used to delete the transient record
|
* 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
|
* @since 4.9.0
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in New Issue