$interval ) ) { $json = get_json($feed); if ( $json ) { $cache_static = fopen( $cache_file, 'w' ); fwrite( $cache_static, $json ); fclose( $cache_static ); } } header( 'Cache-Control: no-cache, must-revalidate' ); header( 'Expires: Mon, 26 Jul 1997 05:00:00 GMT' ); header( 'Content-type: application/json' ); $json = file_get_contents( $cache_file ); echo $json; ?>