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