Ticket #41699: 41699.4.diff
| File 41699.4.diff, 1.6 KB (added by , 8 years ago) |
|---|
-
src/wp-admin/admin.php
87 87 if ( ! wp_next_scheduled( 'wp_scheduled_delete' ) && ! wp_installing() ) 88 88 wp_schedule_event(time(), 'daily', 'wp_scheduled_delete'); 89 89 90 // Schedule Transient cleanup. 91 if ( ! wp_next_scheduled( 'delete_expired_transients' ) && ! wp_installing() ) { 92 wp_schedule_event( time(), 'daily', 'delete_expired_transients' ); 93 } 94 90 95 set_screen_options(); 91 96 92 97 $date_format = __( 'F j, Y' ); … … 94 99 95 100 wp_enqueue_script( 'common' ); 96 101 97 98 99 100 102 /** 101 103 * $pagenow is set in vars.php 102 104 * $wp_importers is sometimes set in wp-admin/includes/import.php -
src/wp-includes/option.php
820 820 * Deletes all expired transients. 821 821 * 822 822 * The multi-table delete syntax is used to delete the transient record 823 * from table a, and the corresponding transient_timeout record from table b. +823 * from table a, and the corresponding transient_timeout record from table b. 824 824 * 825 825 * @since 4.9.0 826 826 * 827 827 * @param bool $force_db Optional. Force cleanup to run against the database even when an external object cache is used. 828 828 */ 829 function delete_expired_transients( $force_db = false ) {829 function delete_expired_transients( $force_db = false ) { 830 830 global $wpdb; 831 831 832 832 if ( ! $force_db && wp_using_ext_object_cache() ) {