Skip to content

Commit

Permalink
AS - purge each week, not each month
Browse files Browse the repository at this point in the history
  • Loading branch information
froger-me committed Jan 7, 2024
1 parent 87083ea commit 5462ac6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions inc/class-wp-packages-update-server.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ public function __construct( $init_hooks = false ) {
add_filter( 'plugin_action_links_' . $plugin_id, array( $this, 'add_action_links' ), 10, 1 );
add_filter( 'wppus_admin_tab_links', array( $this, 'wppus_admin_tab_links' ), 99, 1 );
add_filter( 'wppus_admin_tab_states', array( $this, 'wppus_admin_tab_states' ), 99, 2 );
add_filter( 'action_scheduler_retention_period', array( $this, 'action_scheduler_retention_period' ), 10, 0 );
}

add_action( 'init', array( $this, 'load_textdomain' ), 10, 0 );
Expand Down Expand Up @@ -226,6 +227,10 @@ public function add_action_links( $links ) {
return array_merge( $links, $link );
}

public function action_scheduler_retention_period() {
return WEEK_IN_SECONDS;
}

// Misc. -------------------------------------------------------

public static function get_instance() {
Expand Down

0 comments on commit 5462ac6

Please sign in to comment.