wordpress/wp-content/themes/basic/themify/themify-admin.php
/**
 * Handle the display of the Themify News admin dashboard widget
 *
 * Hooked to wp_ajax_themify_news_widget
 */
Handle the display of the Themify News admin dashboard widget
Hooked to wp_ajax_themify_news_widget
Handle the display of the Themify News admin dashboard widget Hooked to wp_ajax_themify_news_widget
function themify_news_admin_widget_ajax() {
	ob_start();
	wp_widget_rss_output( 'https://themify.me/blog/feed', array(
		'title'			=> esc_html__( 'Themify News', 'themify' ),
		'items'			=> 4,
		'show_summary'	=> 1,
		'show_author'	=> 0,
		'show_date'		=> 1
	) );
	$cache_key = 'themify_news_dashboard_widget';
	set_transient( $cache_key, ob_get_flush(), 12 * HOUR_IN_SECONDS ); 
	die;
}
function themify_news_admin_widget_ajax ( ) { ob_start ( ) ; wp_widget_rss_output ( 'https://themify.me/blog/feed' , array ( 'title' => esc_html__ ( 'Themify News' , 'themify' ) , 'items' => 4 , 'show_summary' => 1 , 'show_author' => 0 , 'show_date' => 1 ) ) ; $ cache_key = 'themify_news_dashboard_widget' ; set_transient ( $ cache_key , ob_get_flush ( ) , 12 * HOUR_IN_SECONDS ) ; die ; }
Handle the display of the Themify News admin dashboard widget
 Hooked to wp_ajax_themify_news_widget
Handle the display of the Themify News admin dashboard widget Hooked to wp_ajax_themify_news_widget
// Default lifetime in cache of 12 hours (same as the feeds)