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