Skip to content

Conversation

@plugin-republic
Copy link

Added a couple of filters for transient duration. Many gists are not updated regularly, if at all, so a longer transient duration can be used.

Example usage:

function pr_transient_expires( $duration ) {
  return MONTH_IN_SECONDS; 
}
add_filter( 'gistpress_transient_expire', 'pr_transient_expires' );
add_filter( 'gistpress_transient_expire_fallback', 'pr_transient_expires' );

Added a couple of filters for transient duration. Many gists are not updated regularly, if at all, so a longer transient duration can be used.
Update class-gistpress.php - Filter transient durations
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant