Last active
March 17, 2017 23:01
-
-
Save tessguefen/9ad3299e498fe9f35513bb0e9bc47376 to your computer and use it in GitHub Desktop.
Transient for WordPress & Miva Blog
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment