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