{"id":136137,"date":"2019-02-22T08:52:19","date_gmt":"2019-02-22T00:52:19","guid":{"rendered":"https:\/\/lrxjmw.cn\/?p=136137"},"modified":"2019-02-18T09:55:43","modified_gmt":"2019-02-18T01:55:43","slug":"php-opcache-config","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/php-opcache-config.html","title":{"rendered":"\u8be6\u89e3:PHP\u52a0\u901f\u5668\u914d\u7f6e\u795e\u5668opcache"},"content":{"rendered":"
\u5f53\u89e3\u91ca\u5668\u5b8c\u6210\u5bf9\u811a\u672c\u4ee3\u7801\u7684\u5206\u6790\u540e\uff0c\u4fbf\u5c06\u5b83\u4eec\u751f\u6210\u53ef\u4ee5\u76f4\u63a5\u8fd0\u884c\u7684\u4e2d\u95f4\u4ee3\u7801\uff0c\u4e5f\u79f0\u4e3a\u64cd\u4f5c\u7801\uff08Operate Code\uff0copcode\uff09\u3002Opcode cache\u7684\u76ee\u5730\u662f\u907f\u514d\u91cd\u590d\u7f16\u8bd1\uff0c\u51cf\u5c11CPU\u548c\u5185\u5b58\u5f00\u9500\u3002\u5982\u679c\u52a8\u6001\u5185\u5bb9\u7684\u6027\u80fd\u74f6\u9888\u4e0d\u5728\u4e8eCPU\u548c\u5185\u5b58\uff0c\u800c\u5728\u4e8eI\/O\u64cd\u4f5c\uff0c\u6bd4\u5982\u6570\u636e\u5e93\u67e5\u8be2\u5e26\u6765\u7684\u78c1\u76d8I\/O\u5f00\u9500\uff0c\u90a3\u4e48opcode cache\u7684\u6027\u80fd\u63d0\u5347\u662f\u975e\u5e38\u6709\u9650\u7684\u3002\u4f46\u662f\u65e2\u7136opcode cache\u80fd\u5e26\u6765CPU\u548c\u5185\u5b58\u5f00\u9500\u7684\u964d\u4f4e\uff0c\u8fd9\u603b\u5f52\u662f\u597d\u4e8b\u3002<\/p>\n
\u8fd9\u5f97\u4ecePHP\u4ee3\u7801\u7684\u751f\u547d\u5468\u671f\u8bf4\u8d77\uff0c\u8bf7\u6c42PHP\u811a\u672c\u65f6\uff0c\u4f1a\u7ecf\u8fc7\u4e94\u4e2a\u6b65\u9aa4\uff0c\u5982\u4e0b\u56fe\u6240\u793a\uff1a
\n<\/p>\n
Zend\u5f15\u64ce\u5fc5\u987b\u4ece\u6587\u4ef6\u7cfb\u7edf\u8bfb\u53d6\u6587\u4ef6\u3001\u626b\u63cf\u5176\u8bcd\u5178\u548c\u8868\u8fbe\u5f0f\u3001\u89e3\u6790\u6587\u4ef6\u3001\u521b\u5efa\u8981\u6267\u884c\u7684\u8ba1\u7b97\u673a\u4ee3\u7801\uff08\u79f0\u4e3aOpcode\uff09\uff0c\u6700\u540e\u6267\u884cOpcode\u3002\u6bcf\u4e00\u6b21\u8bf7\u6c42PHP\u811a\u672c\u90fd\u4f1a\u6267\u884c\u4e00\u904d\u4ee5\u4e0a\u6b65\u9aa4\uff0c\u5982\u679cPHP\u6e90\u4ee3\u7801\u6ca1\u6709\u53d8\u5316\uff0c\u90a3\u4e48Opcode\u4e5f\u4e0d\u4f1a\u53d8\u5316\uff0c\u663e\u7136\u6ca1\u6709\u5fc5\u8981\u6bcf\u6b21\u90fd\u91cd\u884c\u751f\u6210Opcode\uff0c\u7ed3\u5408\u5728Web\u4e2d\u65e0\u6240\u4e0d\u5728\u7684\u7f13\u5b58\u673a\u5236\uff0c\u6211\u4eec\u53ef\u4ee5\u628aOpcode\u7f13\u5b58\u4e0b\u6765\uff0c\u4ee5\u540e\u76f4\u63a5\u8bbf\u95ee\u7f13\u5b58\u7684Opcode\u5c82\u4e0d\u662f\u66f4\u5feb\uff0c\u542f\u7528Opcode\u7f13\u5b58\u4e4b\u540e\u7684\u6d41\u7a0b\u56fe\u5982\u4e0b\u6240\u793a\uff1a
\n<\/p>\n
Opcode\u662f\u4e00\u79cdPHP\u811a\u672c\u7f16\u8bd1\u540e\u7684\u4e2d\u95f4\u8bed\u8a00\uff0c\u5c31\u50cfJava\u7684ByteCode,\u6216\u8005.NET\u7684MSL\uff0c\u4e3e\u4e2a\u4f8b\u5b50\uff0c\u6bd4\u5982\u4f60\u5199\u4e0b\u4e86\u5982\u4e0b\u7684PHP\u4ee3\u7801\uff1a<\/p>\n
\r\n< ?php\r\n echo \"Hello World\";\r\n $a = 1 + 1;\r\n echo $a;\r\n?>\r\n<\/pre>\nPHP\u6267\u884c\u8fd9\u6bb5\u4ee3\u7801\u4f1a\u7ecf\u8fc7\u5982\u4e0b4\u4e2a\u6b65\u9aa4(\u786e\u5207\u7684\u6765\u8bf4\uff0c\u5e94\u8be5\u662fPHP\u7684\u8bed\u8a00\u5f15\u64ceZend)<\/p>\n
\r\n1\uff09Scanning(Lexing) ,\u5c06PHP\u4ee3\u7801\u8f6c\u6362\u4e3a\u8bed\u8a00\u7247\u6bb5(Tokens)\u3002\r\n\r\n2\uff09Parsing, \u5c06Tokens\u8f6c\u6362\u6210\u7b80\u5355\u800c\u6709\u610f\u4e49\u7684\u8868\u8fbe\u5f0f\u3002\r\n\r\n3\uff09Compilation, \u5c06\u8868\u8fbe\u5f0f\u7f16\u8bd1\u6210Opocdes\u3002\r\n\r\n4\uff09Execution, \u987a\u6b21\u6267\u884cOpcodes\uff0c\u6bcf\u6b21\u4e00\u6761\uff0c\u4ece\u800c\u5b9e\u73b0PHP\u811a\u672c\u7684\u529f\u80fd\u3002\r\n<\/pre>\nPHP opcache\u4ecb\u7ecd<\/strong><\/span><\/div>\nOptimizer+\uff08Optimizer+\u4e8e2013\u5e743\u6708\u4e2d\u65ec\u6539\u540d\u4e3aOpcache\uff09\uff0cOPcache\u901a\u8fc7\u5c06PHP\u811a\u672c\u9884\u7f16\u8bd1\u7684\u5b57\u8282\u7801\u5b58\u50a8\u5230\u5171\u4eab\u5185\u5b58\u4e2d\u6765\u63d0\u5347PHP\u7684\u6027\u80fd\uff0c\u5b58\u50a8\u9884\u7f16\u8bd1\u5b57\u8282\u7801\u7684\u597d\u5904\u5c31\u662f\u7701\u53bb\u4e86\u6bcf\u6b21\u52a0\u8f7d\u548c\u89e3\u6790PHP\u811a\u672c\u7684\u5f00\u9500\u3002<\/p>\n
PHP 5.5.0 \u53ca\u540e\u7eed\u7248\u672c\u4e2d\u5df2\u7ecf\u7ed1\u5b9a\u4e86 OPcache \u6269\u5c55\u3002 \u5bf9\u4e8e PHP 5.2\uff0c5.3 \u548c 5.4 \u7248\u672c\u53ef\u4ee5\u4f7f\u7528 \u00bb PECL\u6269\u5c55\u4e2d\u7684OPcache\u5e93\u3002<\/p>\n
PHP 5.5.0\u53ca\u540e\u7eed\u7248\u672c<\/p>\n
OPcache\u53ea\u80fd\u7f16\u8bd1\u4e3a\u5171\u4eab\u6269\u5c55\u3002\u5982\u679c\u4f60\u4f7f\u7528\u2013disable-all\u53c2\u6570\u7981\u7528\u4e86\u9ed8\u8ba4\u6269\u5c55\u7684\u6784\u5efa\uff0c\u90a3\u4e48\u5fc5\u987b\u4f7f\u7528\u2013enable-opcache\u9009\u9879\u6765\u5f00\u542fOPcache\u3002\u7f16\u8bd1\u4e4b\u540e\uff0c\u5c31\u53ef\u4ee5\u4f7f\u7528 zend_extension \u6307\u4ee4\u6765\u5c06 OPcache \u6269\u5c55\u52a0\u8f7d\u5230 PHP \u4e2d\u3002<\/p>\n
\u63a8\u8350\u7684php.ini\u8bbe\u7f6e<\/p>\n
\u4f7f\u7528\u4e0b\u5217\u63a8\u8350\u8bbe\u7f6e\u6765\u83b7\u5f97\u8f83\u597d\u7684\u6027\u80fd\uff1a<\/p>\n
\r\nopcache.memory_consumption=128\r\nopcache.interned_strings_buffer=8\r\nopcache.max_accelerated_files=4000\r\nopcache.revalidate_freq=60\r\nopcache.fast_shutdown=1\r\nopcache.enable_cli=1\r\nopcache.save_comments=0\r\n<\/pre>\n\u4f60\u4e5f\u53ef\u4ee5\u7981\u7528 opcache.save_comments \u5e76\u4e14\u542f\u7528 opcache.enable_file_override\u3002 \u9700\u8981\u63d0\u9192\u7684\u662f\uff0c\u5728\u751f\u4ea7\u73af\u5883\u4e2d\u4f7f\u7528\u4e0a\u8ff0\u914d\u7f6e\u4e4b\u524d\uff0c\u5fc5\u987b\u7ecf\u8fc7\u4e25\u683c\u6d4b\u8bd5\u3002 \u56e0\u4e3a\u4e0a\u8ff0\u914d\u7f6e\u5b58\u5728\u4e00\u4e2a\u5df2\u77e5\u95ee\u9898\uff0c\u5b83\u4f1a\u5f15\u53d1\u4e00\u4e9b\u6846\u67b6\u548c\u5e94\u7528\u7684\u5f02\u5e38\uff0c \u5c24\u5176\u662f\u5728\u5b58\u5728\u6587\u6863\u4f7f\u7528\u4e86\u5907\u6ce8\u6ce8\u89e3\u7684\u65f6\u5019\u3002<\/p>\n
\u4ee5\u4e0b\u662fopcache\u7684\u914d\u7f6e\u8bf4\u660e\uff0c\u5176\u4e2d\u7ed9\u6709\u503c\u5f97\u90fd\u662f\u9ed8\u8ba4\u914d\u7f6e\uff1a<\/p>\n
\r\n; opcache\u7684\u5f00\u5173,\u5173\u95ed\u65f6\u4ee3\u7801\u4e0d\u518d\u4f18\u5316.\r\nopcache.enable=1\r\n \r\n; Determines if Zend OPCache is enabled for the CLI version of PHP\r\nopcache.enable_cli=1\r\n \r\n; OPcache\u7684\u5171\u4eab\u5185\u5b58\u5927\u5c0f\uff0c\u4ee5\u5146\u5b57\u8282\u4e3a\u5355\u4f4d\u3002\u603b\u5171\u80fd\u591f\u5b58\u50a8\u591a\u5c11\u9884\u7f16\u8bd1\u7684PHP\u4ee3\u7801(\u5355\u4f4d:MB)\r\n; \u63a8\u8350128\r\nopcache.memory_consumption=64\r\n \r\n; \u7528\u6765\u5b58\u50a8\u4e34\u65f6\u5b57\u7b26\u4e32\u7684\u5185\u5b58\u5927\u5c0f\uff0c\u4ee5\u5146\u5b57\u8282\u4e3a\u5355\u4f4d.\r\n; \u63a8\u83508\r\nopcache.interned_strings_buffer=4\r\n \r\n; \u6700\u5927\u7f13\u5b58\u7684\u6587\u4ef6\u6570\u76ee200\u5230100000\u4e4b\u95f4.\r\n; \u63a8\u83504000\r\nopcache.max_accelerated_files=2000\r\n \r\n; \u5185\u5b58\"\u6d6a\u8d39\"\u8fbe\u5230\u6b64\u503c\u5bf9\u5e94\u7684\u767e\u5206\u6bd4,\u5c31\u4f1a\u53d1\u8d77\u4e00\u4e2a\u91cd\u542f\u8c03\u5ea6.\r\nopcache.max_wasted_percentage=5\r\n \r\n; \u5f00\u542f\u8fd9\u6761\u6307\u4ee4, Zend Optimizer + \u4f1a\u81ea\u52a8\u5c06\u5f53\u524d\u5de5\u4f5c\u76ee\u5f55\u7684\u540d\u5b57\u8ffd\u52a0\u5230\u811a\u672c\u952e\u4e0a,\u4ee5\u6b64\u6d88\u9664\u540c\u540d\u6587\u4ef6\u95f4\u7684\u952e\u503c\u547d\u540d\u51b2\u7a81.\u5173\u95ed\u8fd9\u6761\u6307\u4ee4\u4f1a\u63d0\u5347\u6027\u80fd,\u4f46\u662f\u4f1a\u5bf9\u5df2\u5b58\u5728\u7684\u5e94\u7528\u9020\u6210\u7834\u574f.\r\nopcache.use_cwd=0\r\n \r\n; \u5f00\u542f\u6587\u4ef6\u65f6\u95f4\u6233\u9a8c\u8bc1\r\nopcache.validate_timestamps=1\r\n \r\n; \u68c0\u67e5\u811a\u672c\u65f6\u95f4\u6233\u662f\u5426\u6709\u66f4\u65b0\u7684\u5468\u671f\uff0c\u4ee5\u79d2\u4e3a\u5355\u4f4d\u3002\u8bbe\u7f6e\u4e3a0<\/i>\u4f1a\u5bfc\u81f4\u9488\u5bf9\u6bcf\u4e2a\u8bf7\u6c42\uff0cOPcache\u90fd\u4f1a\u68c0\u67e5\u811a\u672c\u66f4\u65b0.\r\n; \u63a8\u835060\r\nopcache.revalidate_freq=2\r\n \r\n; \u5141\u8bb8\u6216\u7981\u6b62\u5728include_path\u4e2d\u8fdb\u884c\u6587\u4ef6\u641c\u7d22\u7684\u4f18\u5316.\r\nopcache.revalidate_path=0\r\n \r\n; \u5982\u679c\u7981\u7528\uff0c\u811a\u672c\u6587\u4ef6\u4e2d\u7684\u6ce8\u91ca\u5185\u5bb9\u5c06\u4e0d\u4f1a\u88ab\u5305\u542b\u5230\u64cd\u4f5c\u7801\u7f13\u5b58\u6587\u4ef6\uff0c\u8fd9\u6837\u53ef\u4ee5\u6709\u6548\u51cf\u5c0f\u4f18\u5316\u540e\u7684\u6587\u4ef6\u4f53\u79ef,\u7981\u7528\u6b64\u914d\u7f6e\u6307\u4ee4\u53ef\u80fd\u4f1a\u5bfc\u81f4\u4e00\u4e9b\u4f9d\u8d56\u6ce8\u91ca\u6216\u6ce8\u89e3\u7684\u5e94\u7528\u6216\u6846\u67b6\u65e0\u6cd5\u6b63\u5e38\u5de5\u4f5c\uff0c\u6bd4\u5982:Doctrine,Zend Framework2\u7b49.\r\n; \u63a8\u83500\r\nopcache.save_comments=1\r\n \r\n; \u5982\u679c\u7981\u7528\uff0c\u5219\u5373\u4f7f\u6587\u4ef6\u4e2d\u5305\u542b\u6ce8\u91ca\uff0c\u4e5f\u4e0d\u4f1a\u52a0\u8f7d\u8fd9\u4e9b\u6ce8\u91ca\u5185\u5bb9\u3002\u672c\u9009\u9879\u53ef\u4ee5\u548copcache.save_comments\u4e00\u8d77\u4f7f\u7528\uff0c\u4ee5\u5b9e\u73b0\u6309\u9700\u52a0\u8f7d\u6ce8\u91ca\u5185\u5bb9.\r\nopcache.load_comments=1\r\n\r\n; \u6253\u5f00\u5feb\u901f\u5173\u95ed,\u6253\u5f00\u8fd9\u4e2a\u5728PHP Request Shutdown\u7684\u65f6\u5019\u4f1a\u6536\u5185\u5b58\u7684\u901f\u5ea6\u4f1a\u63d0\u9ad8.\r\n; \u63a8\u83501\r\nopcache.fast_shutdown=1\r\n \r\n; \u5141\u8bb8\u8986\u76d6\u6587\u4ef6\u5b58\u5728\uff08file_exists\u7b49\uff09\u7684\u4f18\u5316\u7279\u6027.\r\nopcache.enable_file_override=0 \r\n \r\n; \u5b9a\u4e49\u542f\u52a8\u591a\u5c11\u4e2a\u4f18\u5316\u8fc7\u7a0b.\r\nopcache.optimization_level=0xffffffff\r\n \r\n; \u542f\u7528\u6b64Hack\u53ef\u4ee5\u6682\u65f6\u6027\u7684\u89e3\u51b3\"can\u2019t redeclare class\"\u9519\u8bef.\r\nopcache.inherited_hack=1\r\n \r\n; \u542f\u7528\u6b64Hack\u53ef\u4ee5\u6682\u65f6\u6027\u7684\u89e3\u51b3\"can\u2019t redeclare class\"\u9519\u8bef.\r\n;opcache.dups_fix=0\r\n \r\n; \u901a\u8fc7\u6587\u4ef6\u5927\u5c0f\u5c4f\u9664\u5927\u6587\u4ef6\u7684\u7f13\u5b58\uff0c\u9ed8\u8ba4\u60c5\u51b5\u4e0b\u6240\u6709\u7684\u6587\u4ef6\u90fd\u4f1a\u88ab\u7f13\u5b58.\r\n;opcache.max_file_size=0\r\n \r\n; \u6bcfN\u6b21\u8bf7\u6c42\u68c0\u67e5\u4e00\u6b21\u7f13\u5b58\u6821\u9a8c.\u9ed8\u8ba4\u503c0\u8868\u793a\u68c0\u67e5\u88ab\u7981\u7528\u4e86,\u7531\u4e8e\u8ba1\u7b97\u6821\u9a8c\u503c\u6709\u635f\u6027\u80fd,\u8fd9\u4e2a\u6307\u4ee4\u5e94\u5f53\u7d27\u7d27\u5728\u5f00\u53d1\u8c03\u8bd5\u7684\u65f6\u5019\u5f00\u542f.\r\n;opcache.consistency_checks=0\r\n \r\n; \u4ece\u7f13\u5b58\u4e0d\u88ab\u8bbf\u95ee\u540e,\u7b49\u5f85\u591a\u4e45\u540e(\u5355\u4f4d\u4e3a\u79d2)\u8c03\u5ea6\u91cd\u542f.\r\n;opcache.force_restart_timeout=180\r\n \r\n; \u65e5\u5fd7\u8bb0\u5f55level\uff0c\u9ed8\u8ba4\u53ea\u6709fatal error\u548cerror.\r\n;opcache.error_log=\r\n \r\n; \u5c06\u9519\u8bef\u4fe1\u606f\u5199\u5165\u5230\u670d\u52a1\u5668(Apache\u7b49)\u65e5\u5fd7\r\n;opcache.log_verbosity_level=1\r\n \r\n; \u5185\u5b58\u5171\u4eab\u7684\u9996\u9009\u540e\u53f0.\u7559\u7a7a\u5219\u662f\u8ba9\u7cfb\u7edf\u9009\u62e9.\r\n;opcache.preferred_memory_model=\r\n \r\n; \u8fd0\u884cphp\u811a\u672c\u65f6\u4fdd\u62a4\u5171\u4eab\u5185\u5b58\u9632\u6b62\u610f\u5916\u7684\u5199\u5165,\u53ea\u5bf9debug\u65f6\u6709\u7528.\r\n;opcache.protect_memory=0\r\n<\/pre>\n\u6700\u540e\u8bf4\u4e00\u4e0b\u4f7f\u7528opcache\u52a0\u901fphp\u65f6\u5e94\u8be5\u6ce8\u610f\u7684\u5751\uff1a<\/p>\n
opcache\u4f9d\u9760\u7684\u662fPHP\u6587\u4ef6\u7684modify time\u4f5c\u4e3a\u6587\u4ef6\u88ab\u4fee\u6539\u7684\u68c0\u6d4b\u6761\u4ef6\uff0c\u57fa\u4e8e\u8fd9\u4e2a\u4f1a\u5f15\u53d1\u4e24\u4e2a\u95ee\u9898\u3002<\/p>\n
\u7b2c\u4e00\u4e2a\u95ee\u9898\u662f\u505a\u7248\u672c\u56de\u6eda\u65f6\uff0c\u7531\u4e8e\u7248\u672c\u56de\u6eda\u540e\u7684\u6587\u4ef6\u4fee\u6539\u65f6\u95f4\u6bd4\u73b0\u6709opcache\u7f13\u5b58\u7684\u6587\u4ef6\u65f6\u95f4\u8981\u5f80\u524d\u4e00\u4e9b\uff0c\u6240\u4ee5\u53ef\u80fd\u4f1a\u5bfc\u81f4opcache\u4e0d\u4f1a\u6e05\u9664\u7f13\u5b58\uff0c\u9700\u8981\u624b\u52a8reload\u3002<\/p>\n
\u7b2c\u4e8c\u4e2a\u95ee\u9898\u662f\u505a\u7248\u672c\u53d1\u5e03\u65f6\uff0c\u4e00\u822c\u90fd\u662fsync\u65b9\u5f0f\uff0c\u53ef\u80fd\u4f1a\u51fa\u73b0\u6587\u4ef6\u53d1\u5e03\u4e00\u534a\u65f6\u88abopcache\u7f13\u5b58\uff0c\u7528\u6237\u8bbf\u95ee\u4f1a\u62a5\u7a0b\u5e8f\u9519\u8bef\uff0c\u8fd9\u4e2a\u4e3b\u8981\u662f\u56e0\u4e3a\u6587\u4ef6\u5185\u5bb9\u7f13\u5b58\u4e86\u4e00\u534a\uff0c\u4f46\u662f\u6587\u4ef6\u7684\u65f6\u95f4\u6233\u4e0d\u4f1a\u5728\u6539\u53d8\uff0c\u6240\u4ee5\u5c31\u7b97opcache\u68c0\u6d4b\u65f6\u4e5f\u4e0d\u4f1a\u53bb\u8bfb\u53d6\u65b0\u7684\u6587\u4ef6\u4e86\uff0c\u9700\u8981\u624b\u52a8reload\u3002<\/p>\n
\u9488\u5bf9\u8fd9\u4e24\u4e2a\u95ee\u9898\uff0c\u4e0d\u5149reload\u53ef\u4ee5\u89e3\u51b3\uff0c\u540c\u6837\u8c03\u7528opcache\u7684\u63a5\u53e3\u4e5f\u53ef\u4ee5\u6e05\u9664opcache\u7f13\u5b58\u3002<\/p>\n
\u4f60\u53ef\u4ee5\u4f7f\u7528opcache_reset()\u6216\u8005\u6216\u8005opcache_invalidate()\u51fd\u6570\u6765\u624b\u52a8\u91cd\u7f6eOPcache\u3002<\/p>\n
opcache_reset()\uff1a\u8be5\u51fd\u6570\u5c06\u91cd\u7f6e\u6574\u4e2a\u5b57\u8282\u7801\u7f13\u5b58\uff0c\u5728\u8c03\u7528opcache_reset()\u4e4b\u540e\uff0c\u6240\u6709\u7684\u811a\u672c\u5c06\u4f1a\u91cd\u65b0\u8f7d\u5165\u5e76\u4e14\u5728\u4e0b\u6b21\u88ab\u70b9\u51fb\u7684\u65f6\u5019\u91cd\u65b0\u89e3\u6790\u3002<\/p>\n
opcache_invalidate()\uff1a\u8be5\u51fd\u6570\u7684\u4f5c\u7528\u662f\u4f7f\u5f97\u6307\u5b9a\u811a\u672c\u7684\u5b57\u8282\u7801\u7f13\u5b58\u5931\u6548\u3002 \u5982\u679cforce\u6ca1\u6709\u8bbe\u7f6e\u6216\u8005\u4f20\u5165\u7684\u662fFALSE\uff0c\u90a3\u4e48\u53ea\u6709\u5f53\u811a\u672c\u7684\u4fee\u6539\u65f6\u95f4 \u6bd4\u5bf9\u5e94\u5b57\u8282\u7801\u7684\u65f6\u95f4\u66f4\u65b0\uff0c\u811a\u672c\u7684\u7f13\u5b58\u624d\u4f1a\u5931\u6548\u3002<\/p>\n
\u4f46\u662f\u4e0d\u63a8\u8350\u4f7f\u7528\uff0c\u4e2a\u4eba\u5728\u751f\u4ea7\u73af\u5883\u4e2d\u8fdb\u884c\u4ee3\u7801\u53d1\u5e03\u540e\u8c03\u7528opcache_reset()\u6e05\u7a7a\u7f13\u5b58\uff08\u6d4b\u8bd5\u786e\u5b9e\u53ef\u4ee5\u6e05\u7a7a\u7f13\u5b58\uff09\uff0c\u51fa\u73b0\u8fc7\u5947\u8469\u95ee\u9898\uff08\u8bbf\u95ee\u91cf\u5927\u7684\u5e94\u7528\uff09\uff0c\u540e\u6765\u5c31\u679c\u65ad\u653e\u5f03\u4e86\uff0c\u4f7f\u7528\u4e86reload\u7684\u65b9\u5f0f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"
\u5f53\u89e3\u91ca\u5668\u5b8c\u6210\u5bf9\u811a\u672c\u4ee3\u7801\u7684\u5206\u6790\u540e\uff0c\u4fbf\u5c06\u5b83\u4eec\u751f\u6210\u53ef\u4ee5\u76f4\u63a5\u8fd0\u884c\u7684\u4e2d\u95f4\u4ee3\u7801\uff0c\u4e5f\u79f0\u4e3a\u64cd\u4f5c\u7801\uff08Operate Code\uff0co […]<\/p>\n","protected":false},"author":1479,"featured_media":48751,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[55],"tags":[],"class_list":["post-136137","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-thread"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/136137","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/users\/1479"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=136137"}],"version-history":[{"count":5,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/136137\/revisions"}],"predecessor-version":[{"id":136560,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/136137\/revisions\/136560"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/48751"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=136137"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=136137"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=136137"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}