NP_EzCache 設定とgzip圧縮送信

はきだすページをキャッシュ化して、高速表示・サーバ負荷低減ができるそうな。

プラグインの設定と、gzip圧縮送信の方法を残しとこう



plugin設定例

/
/xml-rss2.php
/atom.php
/ror.php
/item/([0-9]+)

gzip圧縮送信

xml-rss2.phpの場合。
「header("Content-Type: application/xml");」
のすぐ下の行に下記を追加

ob_start ( "ob_gzhandler" );

ネタ元

[-tm-http://nucleus.yaibeen.com/item243.html-]

過度なxml-rss2.phpへのアクセス対策 - Yaibeen

/
Skooler Records

No comments yet

%3c%69%6e%70%75%74%20%74%79%70%65%3d%22%68%69%64%64%65%6e%22%20%6e%61%6d%65%3d%22%6e%70%5f%70%72%6f%74%65%63%74%62%79%6d%64%35%22%20%76%61%6c%75%65%3d%22%31%30%64%66%34%61%34%65%33%66%35%36%33%37%64%63%65%66%35%61%35%37%65%39%35%62%30%64%32%62%63%64%22%3e %3c%69%6e%70%75%74%20%74%79%70%65%3d%22%68%69%64%64%65%6e%22%20%6e%61%6d%65%3d%22%6e%70%5f%70%72%6f%74%65%63%74%62%79%6d%64%35%5f%68%61%73%68%22%20%76%61%6c%75%65%3d%22%61%37%34%33%36%65%33%34%39%34%39%63%30%34%30%31%38%37%39%62%30%39%63%34%63%65%31%38%63%33%34%64%22%3e
© 2006 – 2014 by Luvsic. Some rights reserved.