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%65%35%34%63%61%30%33%61%63%35%37%36%65%31%39%63%37%62%37%37%37%64%33%31%39%38%30%63%36%66%62%36%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%63%39%34%38%64%62%37%39%62%31%34%61%31%31%38%38%64%66%39%64%33%37%32%37%39%32%63%32%30%62%35%64%22%3e
© 2006 – 2018 by Luvsic. Some rights reserved.