wordpress snippets last updated   : October 6, 2014
we now have 641 snippets

Set fetch_feed to update sooner

wordpress snippet

Adding this code snippet to your functions.php will force fetch_feed( $uri ) to update sooner, set time in milliseconds.

snippet :  PHPcopy
add_filter( 'wp_feed_cache_transient_lifetime', create_function('$a', 'return 900;') ); 

Did you like this post? If so please share it with your friends. Thanks!