Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /home/sinxcerity/www/wp-includes/pomo/plural-forms.php on line 210

Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /home/sinxcerity/www/wp-content/plugins/wp-markdown/markdownify/markdownify.php on line 299
Nucleus RSS gzip圧縮送信 | SINxGularity

Nucleus RSS gzip圧縮送信

gzip圧縮送信

xml-rss2.php


 // compare Etag to what we got if ($eTag == serverVar(<span style="color: #000099">'HTTP_IF_NONE_MATCH'</span>)) { header(<span style="color: #000099">"HTTP/1.0 304 Not Modified"</span>); header(<span style="color: #000099">'Content-Length: 0'</span>); } else { $feed = mb_convert_encoding($feed, <span style="color: #000099">"UTF-8"</span>, <span style="color: #000099">"EUC-JP"</span>); header(<span style="color: #000099">"Content-Type: application/xml"</span>); ob_start ( <span style="color: #000099">"ob_gzhandler"</span> ); // dump feed echo $feed; }

header(“Content-Type: application/xml”);

のすぐ下の行に下記を追加

ob_start ( “ob_gzhandler” );

RSSの表示は速くなった

そんな感じ

Post a comment on "Nucleus RSS gzip圧縮送信"

メールアドレスが公開されることはありません。 * が付いている欄は必須項目です