Skip to content

Instantly share code, notes, and snippets.


billerickson/functions.php Secret

Created Jun 3, 2015
What would you like to do?
function be_purge_recent_post_cache( $new, $old, $post ) {
if( 'publish' == $new )
delete_transient( 'recent_posts_query_results' );
add_action( ‘transition_post_status’, ‘be_purge_recent_post_cache’, 10, 3 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.