<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=utf-8">
<META content="MSHTML 6.00.2900.3243" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Имхо кэширование таких вещей нужно делать на 
стороне скрипта.</FONT></DIV>
<DIV><FONT face=Arial size=2>Тогда и проблем с настройкой не будет. Что делает 
конкретно этот запрос?</FONT></DIV>
<BLOCKQUOTE 
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
  <DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
  <DIV 
  style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B> 
  <A title=vladimir@greenmice.info 
  href="mailto:vladimir@greenmice.info">Vladimir Rusinov</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>To:</B> <A title=nginx-ru@sysoev.ru 
  href="mailto:nginx-ru@sysoev.ru">Nginx-ru List</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>Sent:</B> Friday, February 13, 2009 3:32 
  PM</DIV>
  <DIV style="FONT: 10pt arial"><B>Subject:</B> Кеширование запроса</DIV>
  <DIV><BR></DIV>Приветсвую, коллеги.<BR><BR>Подскажите пожалуйста как мне лучше 
  организовать кеширование (пока) едиснтвенного запроса вида 
  /ajax.php?do=vietvbb_stats&amp;top=vietvbb_top_posters&amp;result=15 на N 
  минут. Судя по статистике оно кушает больше всего остального ресурсов, хотя 
  обновляется в лучшем случае раз в час.<BR><BR>Апстрим - патчено-перепатченый 
  форум на invision, в который лезть не очень хочется.<BR><BR>Пока остановлился 
  на этом:<BR><BR>location /ajax.php 
  {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if 
  ($request_uri ~* 
  "^/ajax.php\?do=vietvbb_stats\&amp;top=vietvbb_top_posters\&amp;result=15$") 
  {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  return 
  403;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  }<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  proxy_pass <A 
  href="http://127.0.0.1:80/ajax.php">http://127.0.0.1:80/ajax.php</A>;<BR>}<BR>location 
  / {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  proxy_pass&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <A 
  href="http://127.0.0.1:80/">http://127.0.0.1:80/</A>;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  proxy_redirect&nbsp;&nbsp;&nbsp;&nbsp; off;<BR>}<BR>location ~* 
  ^.+\.(jpg|jpeg|gif|png|ico|css|zip|tgz|gz|rar|bz2|doc|xls|exe|pdf|ppt|txt|tar|wav|bmp|rtf|js)$ 
  {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  root&nbsp;&nbsp; 
  /home/samforum/public_html;<BR><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  access_log off;<BR>}<BR><BR><BR>подозреваю что мне нужно как-то использовать 
  proxy_pass, но как это сделать в сочетании с if, чтобы не поломать другие ajax 
  (которые кешировать не надо) не пойму.<BR><BR clear=all><BR>-- <BR>Vladimir 
  Rusinov<BR><A 
href="http://greenmice.info/">http://greenmice.info/</A><BR></BLOCKQUOTE></BODY></HTML>