{"id":187118,"date":"2013-07-19T13:26:03","date_gmt":"2013-07-19T09:26:03","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=187118"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=187118","title":{"rendered":"<span class=\"post_title\">\u0427\u0435\u043c \u0437\u0430\u0431\u0438\u0442\u0430 \u0432\u0430\u0448\u0430 \u043f\u0430\u043c\u044f\u0442\u044c \u0438\u043b\u0438 \u0430\u043d\u0430\u043b\u0438\u0437\u0438\u0440\u0443\u0435\u043c \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435 \u043a\u0435\u0448\u0430 XCache<\/span>"},"content":{"rendered":"<div class=\"content html_format\">   \t<img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/327\/79c\/d4e\/32779cd4e8a3782a05156a66d3a56484.jpg\"\/><br \/>  \u0412\u0430\u0441 \u0441\u043c\u0443\u0449\u0430\u0435\u0442 \u044d\u0442\u043e \u0447\u0438\u0441\u043b\u043e? \u041c\u0435\u043d\u044f \u0442\u043e\u0436\u0435.<\/p>\n<p>  \u0412 \u043f\u0435\u0440\u0432\u0443\u044e \u043e\u0447\u0435\u0440\u0435\u0434\u044c \u043c\u043e\u0439 \u043f\u043e\u0441\u0442 \u043e\u0431\u0440\u0430\u0449\u0435\u043d \u043a \u0442\u0435\u043c, \u043a\u0442\u043e \u0440\u0430\u0437\u043c\u0435\u0449\u0430\u0435\u0442 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e \u0441\u0430\u0439\u0442\u043e\u0432 \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0435. \u0414\u043b\u044f \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0445 \u043e\u043d \u0442\u043e\u0436\u0435 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043f\u043e\u043b\u0435\u0437\u0435\u043d, \u043f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0435\u0433\u043e \u0432\u044b \u0441\u043c\u043e\u0436\u0435\u0442\u0435 \u0431\u044b\u0441\u0442\u0440\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0433\u0440\u0443\u043f\u043f\u0438\u0440\u043e\u0432\u043a\u0443 \u043f\u043e \u0444\u0440\u0430\u0433\u043c\u0435\u043d\u0442\u0430\u043c \u043f\u0443\u0442\u0435\u0439 \u0437\u0430\u043a\u0435\u0448\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0445 \u0444\u0430\u0439\u043b\u043e\u0432.<\/p>\n<p>  \u0412\u043e\u0437\u043c\u043e\u0436\u043d\u043e, \u0432\u044b \u0432\u044b\u0434\u0435\u043b\u0438\u043b\u0438 \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u043c\u043d\u043e\u0433\u043e \u043e\u043f\u0435\u0440\u0430\u0442\u0438\u0432\u043d\u043e\u0439 \u043f\u0430\u043c\u044f\u0442\u0438 \u043f\u043e\u0434 \u043a\u0435\u0448. \u0420\u0430\u0437\u043c\u0435\u0440 \u0435\u0433\u043e \u043c\u043e\u0436\u043d\u043e \u0437\u043d\u0430\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0443\u043c\u0435\u043d\u044c\u0448\u0438\u0442\u044c \u043f\u0443\u0442\u0435\u043c \u043e\u0442\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u0442\u044f\u0436\u0435\u043b\u043e\u0432\u0435\u0441\u043d\u044b\u0445, \u043d\u043e \u0440\u0435\u0434\u043a\u043e \u043f\u043e\u0441\u0435\u0449\u0430\u0435\u043c\u044b\u0445 \u0441\u0430\u0439\u0442\u043e\u0432. \u042f \u0432\u0430\u043c \u043f\u043e\u043c\u043e\u0433\u0443 \u0432\u044b\u0447\u0438\u0441\u043b\u0438\u0442\u044c \u0442\u0430\u043a\u0438\u0435 \u0441\u0430\u0439\u0442\u044b.<br \/>  <a name=\"habracut\"><\/a><br \/>  \u042f \u0434\u0443\u043c\u0430\u044e, \u0447\u0442\u043e \u0431\u043e\u043b\u044c\u0448\u0435 \u043d\u0435 \u043e\u0441\u0442\u0430\u043b\u043e\u0441\u044c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 \u0438 \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442 \u0430\u043a\u0441\u0435\u043b\u0435\u0440\u0430\u0442\u043e\u0440\u044b PHP. \u041e\u0434\u0438\u043d \u0438\u0437 <s>\u0434\u0432\u0443\u0445 <\/s>\u043f\u043e\u043f\u0443\u043b\u044f\u0440\u043d\u044b\u0445 \u0430\u043a\u0441\u0435\u043b\u0435\u0440\u0430\u0442\u043e\u0440\u043e\u0432 \u2014 <a href=\"http:\/\/xcache.lighttpd.net\/\">XCache<\/a>. \u0412\u043e\u0437\u043c\u043e\u0436\u043d\u043e, \u043a\u0442\u043e-\u0442\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 \u044d\u0442\u043e\u0442 \u0430\u043a\u0441\u0435\u043b\u0435\u0440\u0430\u0442\u043e\u0440, \u043d\u043e \u043d\u0435 \u0437\u043d\u0430\u0435\u0442, \u0447\u0442\u043e \u0441 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u043e\u043d \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u0438\u0441\u0442\u0438\u0447\u0435\u0441\u043a\u0443\u044e <a href=\"http:\/\/xcache.lighttpd.net\/wiki\/InstallAdministration\">\u0430\u0434\u043c\u0438\u043d\u043a\u0443<\/a>. <\/p>\n<p>  \u0410\u0434\u043c\u0438\u043d\u043a\u0430 \u2014 \u0448\u0442\u0443\u043a\u0430 \u043e\u0447\u0435\u043d\u044c \u043f\u043e\u043b\u0435\u0437\u043d\u0430\u044f, \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043f\u043e\u0434\u043e\u0431\u0440\u0430\u0442\u044c \u043e\u043f\u0442\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u0439 \u0440\u0430\u0437\u043c\u0435\u0440 \u043e\u043f\u0435\u0440\u0430\u0442\u0438\u0432\u043d\u043e\u0439 \u043f\u0430\u043c\u044f\u0442\u0438, \u0432\u044b\u0434\u0435\u043b\u044f\u0435\u043c\u044b\u0439 \u0434\u043b\u044f \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f \u0431\u0430\u0439\u0442\u043a\u043e\u0434\u0430 \u0438\u0441\u043f\u043e\u043b\u043d\u044f\u0435\u043c\u044b\u0445 \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0432. \u0422\u0430\u043a\u0436\u0435 \u043e\u043d\u0430 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043f\u0440\u043e\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u0442\u044c \u0445\u0440\u0430\u043d\u0438\u043c\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u0438 \u0443\u0434\u0430\u043b\u044f\u0442\u044c \u0438\u0445.<\/p>\n<p>  \u0421\u043f\u0438\u0441\u043e\u043a \u044d\u0430\u043a\u0435\u0448\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0445 \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0432 \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0434\u043b\u0438\u043d\u043d\u043e\u0439 \u043a\u043e\u043b\u0431\u0430\u0441\u043e\u0439. \u0410\u0434\u043c\u0438\u043d\u043a\u0430 \u0438\u043c\u0435\u0435\u0442 \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u043e\u0435 \u0441\u0440\u0435\u0434\u0441\u0442\u0432\u043e \u0434\u043b\u044f \u0441\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u043a\u0438 \u0434\u0430\u043d\u043d\u044b\u0445, \u043d\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0441\u043e \u0441\u0442\u043e\u043b\u044c \u0434\u043b\u0438\u043d\u043d\u044b\u043c \u0441\u043f\u0438\u0441\u043a\u043e\u043c \u043d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e.<br \/>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/d49\/a0c\/b73\/d49a0cb73feddb2b60f96fe1687a1ea5.jpg\"\/><\/p>\n<h5>\u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0443 \u0432 \u0448\u0442\u0430\u0442\u043d\u0443\u044e \u0430\u0434\u043c\u0438\u043d\u043a\u0443<\/h5>\n<p>  \u041f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u0430\u0434\u043c\u0438\u043d\u043a\u0430 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0430 \u043d\u0430 PHP \u0441 \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u043c \u043a\u043e\u0434\u043e\u043c, \u0442\u043e \u043c\u044b \u0435\u0451 \u043c\u043e\u0434\u0438\u0444\u0438\u0446\u0438\u0440\u0443\u0435\u043c, \u0434\u043e\u0431\u0430\u0432\u0438\u0432 \u043d\u0443\u0436\u043d\u044b\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b.<br \/>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/a1f\/2e6\/1f9\/a1f2e61f9040ef93b0d5625517f294d9.jpg\"\/><\/p>\n<p>  \u0414\u043e\u0431\u0430\u0432\u0438\u043c \u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443 <b>List PHP<\/b>:<br \/>  1. \u0421\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0443 \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0432 \u043f\u043e \u0445\u043e\u0441\u0442\u0430\u043c<br \/>  2. \u0424\u0438\u043b\u044c\u0442\u0440 \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0432 \u043f\u043e \u0445\u043e\u0441\u0442\u0430\u043c (\u0435\u0441\u043b\u0438 \u0431\u044b\u0442\u044c \u0442\u043e\u0447\u043d\u044b\u043c, \u043f\u043e \u043f\u0440\u0435\u0444\u0438\u043a\u0441\u0430\u043c).<\/p>\n<p>  xcache.tpl.php \u0441\u0442\u0440\u043e\u043a\u0430 150<br \/>  \u041f\u043e\u0441\u043b\u0435<br \/>  <code> \tforeach (array('Cached' =&gt; $cachelist['cache_list'], 'Deleted' =&gt; $cachelist['deleted_list']) as $listname =&gt; $entries) { \t\t$a-&gt;reset(); <\/code><br \/>  \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c<br \/>  <code> \t\tif ($listname == 'Cached') \t\t{\t\t \t\t\t$hosts = array(); \t\t\t$filtertrash = array('', 'usr', 'home'); \t\t\tforeach ($entries as $i =&gt; $entry) \t\t\t{ \t\t\t\tif (strpos($entry['name'], $_SERVER['DOCUMENT_ROOT']) === 0) \t\t\t\t{ \t\t\t\t\t$host = $_SERVER['DOCUMENT_ROOT']; \t\t\t\t\t$prefix = $_SERVER['DOCUMENT_ROOT']; \t\t\t\t} \t\t\t\telse \t\t\t\t{ \t\t\t\t\t$pos = 0; \t\t\t\t\tforeach (explode('\/', $entry['name']) as $host) \t\t\t\t\t{ \t\t\t\t\t\tif (!in_array($host, $filtertrash)) break; \t\t\t\t\t\t$pos += strlen($host) + 1; \t\t\t\t\t} \t\t\t\t\t$prefix = substr($entry['name'], 0, strpos($entry['name'], $host, $pos) + strlen($host)); \t\t\t\t} \t\t\t\tif (isset($hosts[$host])) \t\t\t\t{ \t\t\t\t\t$hosts[$host]['files']++; \t\t\t\t\t$hosts[$host]['hits'] += $entry['hits']; \t\t\t\t\t$hosts[$host]['size'] += $entry['size']; \t\t\t\t} \t\t\t\telse \t\t\t\t{ \t\t\t\t\t$hosts[$host] = array( \t\t\t\t\t'prefix' =&gt; $prefix, \t\t\t\t\t'files' =&gt; 1, \t\t\t\t\t'hits' =&gt; $entry['hits'], \t\t\t\t\t'size' =&gt; $entry['size'], \t\t\t\t\t); \t\t\t\t} \t\t\t} \t\t\t?&gt; \t\t\t&lt;table cellspacing=&quot;0&quot; cellpadding=&quot;4&quot; class=&quot;cycles entries&quot;&gt; \t\t\t\t&lt;tr&gt;&lt;th&gt;Host&lt;\/th&gt;&lt;th&gt;Files&lt;\/th&gt;&lt;th&gt;Hits&lt;\/th&gt;&lt;th&gt;Size&lt;\/th&gt;&lt;th&gt;Ratio(size\/hits)&lt;\/th&gt;&lt;\/tr&gt; \t\t\t&lt;?php \t\t\tuasort($hosts, create_function('$a,$b' , 'return $b[&quot;size&quot;] - $a[&quot;size&quot;];')); \t\t\tforeach ($hosts as $host =&gt; $hoststats) \t\t\t{ \t\t\t\t?&gt;&lt;tr&gt;&lt;td&gt;&lt;a href=&quot;?type=0&prefix=&lt;?=$hoststats['prefix']?&gt;&quot;&gt;&lt;?=$host?&gt;&lt;\/a&gt;&lt;\/td&gt;&lt;td&gt;&lt;?=$hoststats['files']?&gt;&lt;\/td&gt;&lt;td&gt;&lt;?=$hoststats['hits']?&gt;&lt;\/td&gt; \t\t\t\t\t&lt;td&gt;&lt;?= ($hoststats['size'] &gt; 1048576 ? round($hoststats['size'] \/ 1048576).' M' : \t\t\t\t\t\t($hoststats['size'] &gt; 1024 ? round($hoststats['size'] \/ 1024).' k' : $hoststats['size'])   \t\t\t\t\t\t) ?&gt;&lt;\/td&gt; \t\t\t\t\t&lt;td&gt;&lt;?=round($hoststats['size']\/$hoststats['hits'])?&gt; \t\t\t\t&lt;\/tr&gt; \t\t\t\t&lt;?php \t\t\t} \t\t\t?&gt; \t\t\t&lt;\/table&gt; \t\t\t&lt;?php \t\t} <\/code><br \/>  \u0417\u0434\u0435\u0441\u044c \u043c\u044b \u0432\u044b\u0440\u0435\u0437\u0430\u0435\u043c \u0438\u043c\u044f \u0445\u043e\u0441\u0442\u0430 \u0438\u0437 \u0438\u043c\u0435\u043d\u0438 \u0441\u043a\u0440\u0438\u043f\u0442\u0430 \u043b\u0438\u0431\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c DOCUMENT_ROOT \u0434\u043b\u044f chroot&#8217;\u043e\u0432\u0430\u043d\u043d\u044b\u0445 \u0445\u043e\u0441\u0442\u043e\u0432.<br \/>  \u0412\u0441\u0435 \u0441\u043a\u0440\u0438\u043f\u0442\u044b \u043c\u043e\u0438\u0445 \u0441\u0430\u0439\u0442\u043e\u0432 \u043b\u0435\u0436\u0430\u0442 \u0432 \/usr\/home\/HOST\/<br \/>  \u0414\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0445\u043e\u0441\u0442\u0430 \u0441\u0447\u0438\u0442\u0430\u0435\u043c \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0443.<\/p>\n<p>  \u042d\u043a\u0440\u0430\u043d\u043e\u043c \u043d\u0438\u0436\u0435 \u0438\u0437\u043c\u0435\u043d\u044f\u0435\u043c \u043d\u0430\u0447\u0430\u043b\u043e \u0446\u0438\u043a\u043b\u0430 \u0442\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c. \u041e\u0431\u0440\u0430\u0442\u0438\u0442\u0435 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \u043d\u0430 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u043d\u044b\u0439 \u043f\u043e\u0440\u044f\u0434\u043e\u043a \u0441\u0442\u0440\u043e\u043a.<br \/>  <code> \t\tforeach ($entries as $i =&gt; $entry) { \t\t\t$name     = htmlspecialchars($entry['name']); \t\t\tif (!empty($_GET['prefix']) && strpos($name, $_GET['prefix']) !== 0) \t\t\t{ \t\t\t\tcontinue; \t\t\t} \t\t\techo &quot; \t\t\t&lt;tr &quot;, $a-&gt;next(), &quot;&gt;&quot;; <\/code><br \/>  \u042d\u0442\u043e \u0444\u0438\u043b\u044c\u0442\u0440 \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u043f\u043e \u043f\u0440\u0435\u0444\u0438\u043a\u0441\u0443, \u043f\u0435\u0440\u0435\u0434\u0430\u043d\u043d\u043e\u043c\u0443 \u0432 $_GET[&#8216;prefix&#8217;]<\/p>\n<h5>\u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442<\/h5>\n<p>  \u041e\u0431\u043d\u043e\u0432\u043b\u044f\u0435\u043c, \u0438 \u043d\u0430\u0441\u043b\u0430\u0436\u0434\u0430\u0435\u043c\u0441\u044f \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u043e\u0439 \u043f\u043e \u0445\u043e\u0441\u0442\u0430\u043c<br \/>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/6d5\/cdf\/46f\/6d5cdf46f1dd5df3c08e893eebf187a4.jpg\"\/><\/p>\n<p>  \u0421\u0430\u043c\u043e\u0435 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e\u0435 \u0432 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0439 \u043a\u043e\u043b\u043e\u043d\u043a\u0435 \u0412 \u043d\u0435\u0439 \u043f\u0440\u0438\u043c\u0438\u0442\u0438\u0432\u043d\u043e \u043f\u043e\u0441\u0447\u0438\u0442\u0430\u043d\u0430 \u044d\u0444\u0444\u0435\u043a\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u044c \u0437\u0430\u043d\u044f\u0442\u043e\u0439 \u043f\u0430\u043c\u044f\u0442\u0438, \u0438\u0441\u0445\u043e\u0434\u044f \u0438\u0437 \u0440\u0430\u0437\u043c\u0435\u0440\u0430 \u0438 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0430 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432.<br \/>  \u0421\u043a\u043e\u0440\u0435\u0435 \u0432\u0441\u0435\u0433\u043e, \u0432\u044b \u0443\u0432\u0438\u0434\u0438\u0442\u0435 \u0433\u043e\u0440\u0430\u0437\u0434\u043e \u0431\u043e\u043b\u044c\u0448\u0438\u0439 \u0440\u0430\u0437\u0431\u0440\u043e\u0441 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439. \u041c\u043e\u044f \u0442\u0430\u0431\u043b\u0438\u0446\u0430 \u2014 \u0443\u0436\u0435 \u043f\u043e\u0441\u043b\u0435 \u043f\u0440\u043e\u0432\u0435\u0434\u0435\u043d\u043d\u043e\u0439 \u0440\u0430\u0431\u043e\u0442\u044b, \u0432 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0435 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u044f \u0432\u044b\u0431\u0440\u043e\u0441\u0438\u043b \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0442\u043e\u043b\u0441\u0442\u044b\u0435 \u0441\u0430\u0439\u0442\u044b \u0431\u0435\u0437 \u0437\u043d\u0430\u0447\u0438\u043c\u043e\u0439 \u043f\u043e\u0441\u0435\u0449\u0430\u0435\u043c\u043e\u0441\u0442\u0438.<\/p>\n<h5>\u041a\u0430\u043a \u043e\u0442\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u043a\u0435\u0448\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u043d\u0435\u043d\u0443\u0436\u043d\u043e\u0433\u043e?<\/h5>\n<p>  \u0415\u0441\u043b\u0438 \u0432\u044b \u043e\u0442\u043a\u043b\u044e\u0447\u0438\u0442\u0435 \u043a\u0435\u0448\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435, \u0442\u043e \u0434\u043b\u044f \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0432 \u0431\u0443\u0434\u0435\u0442 \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0431\u0430\u0439\u0442\u043a\u043e\u0434 \u043f\u0440\u0438 \u043a\u0430\u0436\u0434\u043e\u043c \u0437\u0430\u043f\u0443\u0441\u043a\u0435. \u0418 \u0432\u0441\u0451 \u0440\u0430\u0432\u043d\u043e \u043e\u043d \u0431\u0443\u0434\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u043d\u044f\u0442\u044c\u0441\u044f \u0431\u044b\u0441\u0442\u0440\u0435\u0435, \u0447\u0435\u043c \u0435\u0441\u043b\u0438 \u0431\u044b \u043e\u043d \u0440\u0430\u0431\u043e\u0442\u0430\u043b \u0431\u0435\u0437 \u0430\u043a\u0441\u0435\u043b\u0435\u0440\u0430\u0442\u043e\u0440\u0430.<\/p>\n<p>  \u0414\u043b\u044f \u043e\u0442\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u043a\u0435\u0448\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u0443\u044e INI \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e<br \/>  <code> xcache.cacher = Off <\/code><br \/>  \u0414\u043b\u044f \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0445 \u0445\u043e\u0441\u0442\u043e\u0432 \u0438 \u0444\u0430\u0439\u043b\u043e\u0432 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u044b<br \/>  1. \u0432 php.ini \u0432\u043f\u0438\u0441\u0430\u0442\u044c \u0441\u0435\u043a\u0446\u0438\u044e \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0445\u043e\u0441\u0442\u0430<br \/>  <code> [HOST=&lt;host&gt;] xcache.cacher = Off <\/code><br \/>  2. \u0435\u0441\u043b\u0438 \u0443 \u0432\u0430\u0441 FCGI\/FPM\/5.3+, \u0442\u043e \u0432 \u043f\u0430\u043f\u043a\u0443 \u0441\u043e \u0441\u043a\u0440\u0438\u043f\u0442\u0430\u043c\u0438 \u043f\u043e\u043b\u043e\u0436\u0438\u0442\u044c \u0444\u0430\u0439\u043b <a href=\"http:\/\/php.net\/manual\/ru\/configuration.file.per-user.php\">.user.ini<\/a><br \/>  <code> xcache.cacher = Off <\/code><br \/>  \u041a\u0435\u0448\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0431\u0443\u0434\u0435\u0442 \u043e\u0442\u043a\u043b\u044e\u0447\u0435\u043d\u043e \u0434\u043b\u044f \u0432\u0441\u0435\u0445 \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0432, \u0440\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u043d\u044b\u0445 \u0432 \u044d\u0442\u043e\u0439 \u043f\u0430\u043f\u043a\u0435 \u0438 \u0432\u043e \u0432\u0441\u0435\u0445 \u0443\u0440\u043e\u0432\u043d\u044f\u0445 \u043d\u0438\u0436\u0435<br \/>  3. \u0435\u0441\u043b\u0438 \u0443 \u0432\u0430\u0441 <a href=\"http:\/\/www.php.net\/manual\/ru\/configuration.changes.php\">Apache<\/a><br \/>  <code> &lt;IfModule mod_php5.c&gt;   php_value xcache.cacher  Off &lt;\/IfModule&gt; <\/code><\/p>\n<h5>\u0417\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435<\/h5>\n<p>  \u041d\u0430\u0434\u0435\u044e\u0441\u044c, \u043c\u043e\u044f \u043d\u0435\u0445\u0438\u0442\u0440\u0430\u044f \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044f \u043f\u043e\u043c\u043e\u0433\u043b\u0430 \u0432\u0430\u043c \u043e\u0441\u0432\u043e\u0431\u043e\u0434\u0438\u0442\u044c \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u043e\u043f\u0435\u0440\u0430\u0442\u0438\u0432\u043d\u043e\u0439 \u043f\u0430\u043c\u044f\u0442\u0438. \u041a\u0443\u0434\u0430 \u0442\u0435\u043f\u0435\u0440\u044c \u0435\u0451 \u043f\u043e\u0442\u0440\u0430\u0442\u0438\u0442\u044c? \u041d\u0443, \u043e\u043f\u0435\u0440\u0430\u0442\u0438\u0432\u044b \u043c\u043d\u043e\u0433\u043e \u043d\u0435 \u0431\u044b\u0432\u0430\u0435\u0442, \u0442\u0430\u043a \u0447\u0442\u043e, \u043a\u0443\u0434\u0430-\u043d\u0438\u0431\u0443\u0434\u044c \u043f\u0440\u0438\u0440\u0430\u0441\u0442\u0435\u0442.<br \/>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/a99\/66b\/164\/a9966b1642edf9611546015aba7a6cc8.jpg\"\/>    \t<\/p>\n<div class=\"clear\"><\/div>\n<\/p><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"http:\/\/habrahabr.ru\/post\/187118\/\"> http:\/\/habrahabr.ru\/post\/187118\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"content html_format\">   \t<img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/327\/79c\/d4e\/32779cd4e8a3782a05156a66d3a56484.jpg\"\/><br \/>  \u0412\u0430\u0441 \u0441\u043c\u0443\u0449\u0430\u0435\u0442 \u044d\u0442\u043e \u0447\u0438\u0441\u043b\u043e? \u041c\u0435\u043d\u044f \u0442\u043e\u0436\u0435.<\/p>\n<p>  \u0412 \u043f\u0435\u0440\u0432\u0443\u044e \u043e\u0447\u0435\u0440\u0435\u0434\u044c \u043c\u043e\u0439 \u043f\u043e\u0441\u0442 \u043e\u0431\u0440\u0430\u0449\u0435\u043d \u043a \u0442\u0435\u043c, \u043a\u0442\u043e \u0440\u0430\u0437\u043c\u0435\u0449\u0430\u0435\u0442 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e \u0441\u0430\u0439\u0442\u043e\u0432 \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0435. \u0414\u043b\u044f \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0445 \u043e\u043d \u0442\u043e\u0436\u0435 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043f\u043e\u043b\u0435\u0437\u0435\u043d, \u043f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0435\u0433\u043e \u0432\u044b \u0441\u043c\u043e\u0436\u0435\u0442\u0435 \u0431\u044b\u0441\u0442\u0440\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0433\u0440\u0443\u043f\u043f\u0438\u0440\u043e\u0432\u043a\u0443 \u043f\u043e \u0444\u0440\u0430\u0433\u043c\u0435\u043d\u0442\u0430\u043c \u043f\u0443\u0442\u0435\u0439 \u0437\u0430\u043a\u0435\u0448\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0445 \u0444\u0430\u0439\u043b\u043e\u0432.<\/p>\n<p>  \u0412\u043e\u0437\u043c\u043e\u0436\u043d\u043e, \u0432\u044b \u0432\u044b\u0434\u0435\u043b\u0438\u043b\u0438 \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u043c\u043d\u043e\u0433\u043e \u043e\u043f\u0435\u0440\u0430\u0442\u0438\u0432\u043d\u043e\u0439 \u043f\u0430\u043c\u044f\u0442\u0438 \u043f\u043e\u0434 \u043a\u0435\u0448. \u0420\u0430\u0437\u043c\u0435\u0440 \u0435\u0433\u043e \u043c\u043e\u0436\u043d\u043e \u0437\u043d\u0430\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0443\u043c\u0435\u043d\u044c\u0448\u0438\u0442\u044c \u043f\u0443\u0442\u0435\u043c \u043e\u0442\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u0442\u044f\u0436\u0435\u043b\u043e\u0432\u0435\u0441\u043d\u044b\u0445, \u043d\u043e \u0440\u0435\u0434\u043a\u043e \u043f\u043e\u0441\u0435\u0449\u0430\u0435\u043c\u044b\u0445 \u0441\u0430\u0439\u0442\u043e\u0432. \u042f \u0432\u0430\u043c \u043f\u043e\u043c\u043e\u0433\u0443 \u0432\u044b\u0447\u0438\u0441\u043b\u0438\u0442\u044c \u0442\u0430\u043a\u0438\u0435 \u0441\u0430\u0439\u0442\u044b.  <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-187118","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/187118","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=187118"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/187118\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=187118"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=187118"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=187118"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}