Skip to content

Commit

Permalink
Add visibility, filter parameter, documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
BrianHenryIE committed Aug 14, 2024
1 parent dbdce38 commit 9b1ef89
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions includes/Performance.php
Original file line number Diff line number Diff line change
Expand Up @@ -136,12 +136,18 @@ function () {
/**
* Update the default action scheduler retention period to 5 days instead of 30.
* The actions scheduler table tends to grow to gigantic sizes and this should help.
*
* @return int new retention period
*
* @hooked action_scheduler_retention_period
* @see ActionScheduler_QueueCleaner::delete_old_actions()
*
* @param int $retention_period Minimum scheduled age in seconds of the actions to be deleted.
*
* @return int New retention period in seconds.
*/
function nfd_asr_default() {
return 5 * DAY_IN_SECONDS;
public function nfd_asr_default( $retention_period ) {
return 5 * constant( 'DAY_IN_SECONDS' );
}

/**
* When updating mod rewrite rules, also update our rewrites as appropriate.
*/
Expand Down

0 comments on commit 9b1ef89

Please sign in to comment.