Make WordPress Core


Ignore:
Timestamp:
10/21/2017 01:21:24 PM (8 years ago)
Author:
dd32
Message:

Transients: Clear expired transients from the database in a daily cron task.

Fixes #41699

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/default-filters.php

    r41895 r41963  
    318318add_action( 'transition_post_status',     '_update_term_count_on_transition_post_status', 10, 3 );
    319319add_action( 'comment_form',               'wp_comment_form_unfiltered_html_nonce'          );
    320 add_action( 'wp_scheduled_delete',        'wp_scheduled_delete'                            );
    321 add_action( 'wp_scheduled_auto_draft_delete', 'wp_delete_auto_drafts'                      );
    322320add_action( 'admin_init',                 'send_frame_options_header',               10, 0 );
    323 add_action( 'importer_scheduled_cleanup', 'wp_delete_attachment'                           );
    324 add_action( 'upgrader_scheduled_cleanup', 'wp_delete_attachment'                           );
    325321add_action( 'try_gutenberg_panel',        'wp_try_gutenberg_panel'                         );
    326322add_action( 'welcome_panel',              'wp_welcome_panel'                               );
     323
     324// Cron tasks
     325add_action( 'wp_scheduled_delete',            'wp_scheduled_delete'       );
     326add_action( 'wp_scheduled_auto_draft_delete', 'wp_delete_auto_drafts'     );
     327add_action( 'importer_scheduled_cleanup',     'wp_delete_attachment'      );
     328add_action( 'upgrader_scheduled_cleanup',     'wp_delete_attachment'      );
     329add_action( 'delete_expired_transients',      'delete_expired_transients' );
    327330
    328331// Navigation menu actions
Note: See TracChangeset for help on using the changeset viewer.