steveosoule
7/12/2016 - 3:25 PM

Transient for WordPress & Miva Blog

Transient for WordPress & Miva Blog

if ( false === ( $mivaHeader = get_transient( 'miva_header' ) ) ) {
	$mivaHeader = file_get_contents("http://" . $hostname . "/mm5/merchant.mvc?Screen=WP-HEADER");
	set_transient( 'miva_header', $mivaHeader, 24 * HOUR_IN_SECONDS );
}
echo $mivaHeader;