{"id":27006,"date":"2020-02-03T15:46:38","date_gmt":"2020-02-03T07:46:38","guid":{"rendered":"http:\/\/4563.org\/?p=27006"},"modified":"2020-02-03T15:46:38","modified_gmt":"2020-02-03T07:46:38","slug":"wordpress%e6%97%a0%e6%8f%92%e4%bb%b6%e3%80%81%e6%97%a0%e6%8d%9f%e9%9d%99%e6%80%81%e5%8c%96","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=27006","title":{"rendered":"wordpress\u65e0\u63d2\u4ef6\u3001\u65e0\u635f\u9759\u6001\u5316"},"content":{"rendered":"\n<p>  \t\t\t\t\t<strong>abccba94<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2019-12-28 11:22:37\t<\/p>\n<h3>wordpress\u65e0\u63d2\u4ef6\u3001\u65e0\u635f\u9759\u6001\u5316<\/h3>\n<p>  \t\t \u672c\u5e16\u6700\u540e\u7531 abccba94 \u4e8e 2019-12-28 14:45 \u7f16\u8f91 <\/p>\n<p> \u7f51\u4e0a\u770b\u5230\u7684\u65b9\u6cd5\uff0c\u7528\u4e00\u4e2a\u6587\u4ef6\u5373\u53ef\u5b9e\u73b0wordpress\u9759\u6001\u5316\uff0c\u9759\u6001\u5316\u540e\u7528load.io\u8d1f\u8f7d\u6d4b\u8bd5\uff0c\u6027\u80fd\u63d0\u5347\u660e\u663e<\/p>\n<p>  \u6b64\u65b9\u6cd5\u7684\u4f18\u70b9\u662f\u6539\u52a8\u5f88\u5c0f\uff0c\u53ef\u4ee5\u5f88\u65b9\u4fbf\u7684\u542f\u52a8\u6216\u505c\u6b62\u9759\u6001\u5316\uff0c\u4e0d\u8db3\u7684\u662f\u9605\u8bfb\u7edf\u8ba1\u529f\u80fd\u7b49\u4f1a\u53d7\u5230\u5f71\u54cd<\/p>\n<p>  \u9759\u6001\u5316\u65b9\u6cd5\uff1a<br \/>  http:\/\/iytc.net\/wordpress\/?p=5823<\/p>\n<p>  \u5927\u5bb6\u987a\u4fbf\u53ef\u4ee5\u53cd\u9988\u4e0b\u9759\u6001\u5316\u540e\u7684\u8bbf\u95ee\u901f\u5ea6yc008t <br \/>  http:\/\/iytc.net\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>\u603b\u662f\u5435\u67b6\u7684\u732a<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2019-12-28 11:25:06\t<\/p>\n<h3><\/h3>\n<p>  \t\t\u597d\u529e\u6cd5\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>enjoyit<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2019-12-28 11:26:51\t<\/p>\n<h3><\/h3>\n<p>  \t\t\u6536\u85cf\uff0c\u4e0d\u9519\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>mfcer<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2019-12-28 11:28:58\t<\/p>\n<h3><\/h3>\n<p>  \t\t020\u7535\u4fe1\u7b49\u4e86\u5dee\u4e0d\u591a6\u79d2\u624d\u6253\u5f00:lol:lol\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>dtkevin<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2019-12-28 11:35:20\t<\/p>\n<h3><\/h3>\n<p>  \t\t\u55ef\u6211\u8bd5\u4e86 \u6211\u7684\u4e3b\u9898\u4e0d\u592a\u9002\u5408\uff0c\u76f4\u63a5\u7f13\u5b58\u5230\u4e86\u767b\u5f55\u4fe1\u606f\u3002\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>abccba94<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2019-12-28 11:42:21\t<\/p>\n<h3><\/h3>\n<p>  \t\tdtkevin \u5927\u4f6c\u6709\u8bdd\u8bf4 : 2019-12-28 11:35<br \/>  \u55ef\u6211\u8bd5\u4e86 \u6211\u7684\u4e3b\u9898\u4e0d\u592a\u9002\u5408\uff0c\u76f4\u63a5\u7f13\u5b58\u5230\u4e86\u767b\u5f55\u4fe1\u606f\u3002<\/p>\n<p> \u548c\u4e3b\u9898\u65e0\u5173\u5427\uff0c\u7b2c\u4e00\u6b21\u4ee5\u975e\u767b\u5f55\u72b6\u6001\u8bbf\u95ee\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>\u56f4\u89c2\u8005<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2019-12-28 12:06:56\t<\/p>\n<h3><\/h3>\n<p>  \t\t&lt;?php&nbsp; &nbsp;<br \/>  define(&#8216;CACHE_ROOT&#8217;, dirname(__FILE__).&#8217;\/cache&#8217;);&nbsp; &nbsp;<br \/>  define(&#8216;CACHE_LIFE&#8217;, 86400);&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; \/\/\u7f13\u5b58\u6587\u4ef6\u7684\u751f\u547d\u671f\uff0c\u5355\u4f4d\u79d2\uff0c86400\u79d2\u662f\u4e00\u5929&nbsp; &nbsp;<br \/>  define(&#8216;CACHE_SUFFIX&#8217;,&#8217;.html&#8217;);&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; \/\/\u7f13\u5b58\u6587\u4ef6\u7684\u6269\u5c55\u540d\uff0c\u5343\u4e07\u522b\u7528 .php .asp .jsp .pl \u7b49\u7b49&nbsp; &nbsp;<br \/>  $file_name= md5($_SERVER[&#8216;HTTP_HOST&#8217;].$_SERVER[&#8216;REQUEST_URI&#8217;]).CACHE_SUFFIX;&nbsp; &nbsp; \/\/\u7f13\u5b58\u6587\u4ef6\u540d&nbsp; &nbsp;<br \/>  \/\/\u7f13\u5b58\u76ee\u5f55\uff0c\u6839\u636emd5\u7684\u524d\u4e24\u4f4d\u628a\u7f13\u5b58\u6587\u4ef6\u5206\u6563\u5f00\u3002\u907f\u514d\u6587\u4ef6\u8fc7\u591a\u3002\u5982\u679c\u6709\u5fc5\u8981\uff0c\u53ef\u4ee5\u7528\u7b2c\u4e09\u56db\u4f4d\u4e3a\u540d\uff0c\u518d\u52a0\u4e00\u5c42\u76ee\u5f55\u3002&nbsp; &nbsp;<br \/>  \/\/256\u4e2a\u76ee\u5f55\u6bcf\u4e2a\u76ee\u5f551000\u4e2a\u6587\u4ef6\u7684\u8bdd\uff0c\u5c31\u662f25\u4e07\u4e2a\u9875\u9762\u3002\u4e24\u5c42\u76ee\u5f55\u7684\u8bdd\u5c31\u662f65536*1000=\u516d\u5343\u4e94\u767e\u4e07\u3002&nbsp; &nbsp;<br \/>  \/\/\u4e0d\u8981\u8ba9\u5355\u4e2a\u76ee\u5f55\u591a\u4e8e1000\uff0c\u4ee5\u514d\u5f71\u54cd\u6027\u80fd\u3002&nbsp; &nbsp;<br \/>  $cache_dir= CACHE_ROOT.&#8217;\/&#8217;.substr($file_name,0,2);&nbsp; &nbsp;<br \/>  $cache_file = $cache_dir.&#8217;\/&#8217;.$file_name;&nbsp; &nbsp; \/\/\u7f13\u5b58\u6587\u4ef6\u5b58\u653e\u8def\u5f84&nbsp; &nbsp;<br \/>  if($_SERVER[&#8216;REQUEST_METHOD&#8217;]==&#8217;GET&#8217;){&nbsp; &nbsp;&nbsp; &nbsp;\/\/GET\u65b9\u5f0f\u8bf7\u6c42\u624d\u7f13\u5b58\uff0cPOST\u4e4b\u540e\u4e00\u822c\u90fd\u5e0c\u671b\u770b\u5230\u6700\u65b0\u7684\u7ed3\u679c&nbsp; &nbsp;<br \/>  &nbsp; &nbsp; if(file_exists($cache_file) &amp;&amp; time() &#8211; filemtime($cache_file) &lt; CACHE_LIFE){&nbsp; &nbsp;\/\/\u5982\u679c\u7f13\u5b58\u6587\u4ef6\u5b58\u5728\uff0c\u5e76\u4e14\u6ca1\u6709\u8fc7\u671f\uff0c\u5c31\u628a\u5b83\u8bfb\u51fa\u6765\u3002&nbsp; &nbsp;<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;$fp = fopen($cache_file,&#8217;rb&#8217;);&nbsp; &nbsp;<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;fpassthru($fp);&nbsp; &nbsp;<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;fclose($fp);&nbsp; &nbsp;<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;exit();&nbsp; &nbsp;<br \/>  &nbsp; &nbsp; }&nbsp; &nbsp;<br \/>  &nbsp; &nbsp; elseif(!file_exists($cache_dir)){&nbsp; &nbsp;<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;if(!file_exists(CACHE_ROOT)){&nbsp; &nbsp;<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;mkdir(CACHE_ROOT,0777);&nbsp; &nbsp;<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;chmod(CACHE_ROOT,0777);&nbsp; &nbsp;<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;}&nbsp; &nbsp;<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;mkdir($cache_dir,0777);&nbsp; &nbsp;<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;chmod($cache_dir,0777);&nbsp; &nbsp;<br \/>  &nbsp; &nbsp; }&nbsp; &nbsp;<br \/>  &nbsp; &nbsp; function auto_cache($contents){&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;\/\/\u56de\u8c03\u51fd\u6570\uff0c\u5f53\u7a0b\u5e8f\u7ed3\u675f\u65f6\u81ea\u52a8\u8c03\u7528\u6b64\u51fd\u6570&nbsp; &nbsp;<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;global $cache_file;&nbsp; &nbsp;<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;$fp = fopen($cache_file,&#8217;wb&#8217;);&nbsp; &nbsp;<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;fwrite($fp,$contents);&nbsp; &nbsp;<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;fclose($fp);&nbsp; &nbsp;<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;chmod($cache_file,0777);&nbsp; &nbsp;<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;clean_old_cache();&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;\/\/\u751f\u6210\u65b0\u7f13\u5b58\u7684\u540c\u65f6\uff0c\u81ea\u52a8\u5220\u9664\u6240\u6709\u7684\u8001\u7f13\u5b58\u3002\u4ee5\u8282\u7ea6\u7a7a\u95f4\u3002&nbsp; &nbsp;<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;return $contents;&nbsp; &nbsp;<br \/>  &nbsp; &nbsp; }&nbsp; &nbsp;<br \/>  &nbsp; &nbsp; function clean_old_cache(){&nbsp; &nbsp;<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;chdir(CACHE_ROOT);&nbsp; &nbsp;<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;foreach (glob(&quot;*\/*&quot;.CACHE_SUFFIX) as $file){&nbsp; &nbsp;<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;if(time()-filemtime($file)&gt;CACHE_LIFE){&nbsp; &nbsp;<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;unlink($file);&nbsp; &nbsp;<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;}&nbsp; &nbsp;<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;}&nbsp; &nbsp;<br \/>  &nbsp; &nbsp; }&nbsp; &nbsp;<br \/>  &nbsp; &nbsp; ob_start(&#8216;auto_cache&#8217;);&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;\/\/\u56de\u8c03\u51fd\u6570 auto_cache&nbsp; &nbsp;<br \/>  }&nbsp; &nbsp;<br \/>  else{&nbsp; &nbsp;<br \/>  &nbsp; &nbsp; if(file_exists($cache_file)){&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;\/\/file_exists() \u51fd\u6570\u68c0\u67e5\u6587\u4ef6\u6216\u76ee\u5f55\u662f\u5426\u5b58\u5728\u3002&nbsp; &nbsp;<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;unlink($cache_file);&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; \/\/\u4e0d\u662fGET\u7684\u8bf7\u6c42\u5c31\u5220\u9664\u7f13\u5b58\u6587\u4ef6\u3002&nbsp; &nbsp;<br \/>  &nbsp; &nbsp; }&nbsp; &nbsp;<br \/>  }&nbsp; &nbsp;<br \/>  ?&gt;<\/p>\n<p>  \u53ef\u4ee5\u7684\uff0c\u4ee3\u7801\u653e\u8fd9\u91cc\u4fdd\u5b58\u4e00\u4e0b\uff0c\u4ee5\u514d\u4ee5\u540e\u627e\u4e0d\u5230\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>redditer<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2019-12-28 13:28:50\t<\/p>\n<h3><\/h3>\n<p>  \t\t\u6b63\u5728\u5bfb\u627e\u7684\u65b9\u6cd5\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>logo<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2019-12-28 13:45:49\t<\/p>\n<h3><\/h3>\n<p>  \t\tmark\t\t\t  <\/p>\n","protected":false},"excerpt":{"rendered":"<p>abccba94 \u5927\u4f6c\u6709\u8bdd\u8bf4 : &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/27006"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=27006"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/27006\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=27006"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=27006"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=27006"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}