Nginx cache module v 2.0

NCache is a nginx cache module like squid now version is 2.0
you can get it here : www.ncache.org

oooh this is very sweet.

can you talk a little on how your PURGE directive works?

PURGE can delete the cache files, is used by a php program like this:

<?php http_purge("127.0.0.1", 9080, "/t_n_cahce.xml?uid=1145642397"); function http_purge($ip, $port, $url) { $errstr = ''; $errno = ''; $fp = @fsockopen ($ip, $port, $errno, $errstr, 1); if (!$fp) { return "$errstr ($errno)"; } else { $out = "PURGE $url HTTP/1.1\r\n"; $out .= "Host: blog.sina.com.cn\r\n"; $out .= "Connection: close\r\n\r\n"; print $out; fputs ($fp, $out); while (!feof($fp)) { echo fgets($fp, 128); } fclose ($fp); } } ?>

Great to see it’s finally a module now.
Thanks a lot!

Regards,
Du Song

thank x alot, i will improve it frequently

My thoughts exactly, i thought it was gonna be a nginx modification, very glad to see it's a module now :)

It might reach the production servers sooner anyway.

BR

Du Song wrote:
Great to see it's finally a module now.
Thanks a lot!

Regards,
Du Song

On Wed, Jul 23, 2008 at 18:05, pf shineyear <[email protected]> wrote:

NCache is a nginx cache module like squid now version 
is 2.0
you can get it here : www.ncache.org
</pre>
  

ye i agree with u , and i m applying to be a third part plugin on the
nginx wiki

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs