{"id":218,"date":"2012-11-27T00:36:33","date_gmt":"2012-11-26T16:36:33","guid":{"rendered":"https:\/\/sdeno.com\/?p=218"},"modified":"2012-12-05T23:45:01","modified_gmt":"2012-12-05T15:45:01","slug":"11%e4%b8%aa%e6%8a%80%e5%b7%a7%e6%8f%90%e9%ab%98wordpress%e9%80%9f%e5%ba%a6%e4%b8%8e%e6%80%a7%e8%83%bd","status":"publish","type":"post","link":"https:\/\/sdeno.com\/?p=218","title":{"rendered":"11\u4e2a\u6280\u5de7\u63d0\u9ad8WordPress\u901f\u5ea6\u4e0e\u6027\u80fd"},"content":{"rendered":"<p><strong>1.\u5347\u7ea7\u5230Wordpress\u7684\u6700\u65b0\u7248\u672c\uff08beta\u7248\u9664\u5916 &#8211; -#\uff09<\/strong><br \/>\nWordPress 2.7\u76f8\u5bf9\u4e8e\u4ee5\u5f80\u7684\u7248\u672c\u6709\u5927\u91cf\u7684\u66f4\u65b0\uff0c\u56e0\u6b64\uff0c\u6700\u597d\u5347\u7ea7\u5230\u6700\u65b0\u7684\u7248\u672c\u3002<\/p>\n<p><!--more--><\/p>\n<p>2.\u5220\u9664\u6ca1\u6709\u5fc5\u8981\u7684\u63d2\u4ef6\uff0c\u5347\u7ea7\u6b63\u5728\u4f7f\u7528\u7684\u63d2\u4ef6<br \/>\n\u4eceWeb\u670d\u52a1\u5668\u4e0a\u5220\u9664\u4f60\u672a\u4f7f\u7528\u7684\u63d2\u4ef6\uff0c\u4ec5\u4ec5\u505c\u7528\u63d2\u4ef6\u8fd8\u662f\u4f1a\u5f71\u54cd\u5230\u4e00\u4e2a\u7f51\u7ad9\u7684\u901f\u5ea6\uff0c\u56e0\u4e3aWordPress\u4f1a\u68c0\u67e5\u770b\u770b\u4ed6\u4eec\u662f\u5426\u88ab\u6fc0\u6d3b\uff1b\u6b64\u5916\u4f60\u5fc5\u987b\u4fdd\u6301\u4f60\u6b63\u5728\u4f7f\u7528\u63d2\u4ef6\u7684\u6700\u65b0\u7248\u672c\uff0c\u63d2\u4ef6\u4f5c\u8005\u63a8\u51fa\u65b0\u7248\u672c\uff0c\u662f\u56e0\u4e3a\u4ed6\u4eec\u5df2\u7ecf\u4fee\u6539\u4e86\u4ee3\u7801\u4f7f\u63d2\u4ef6\u66f4\u597d\u5730\u53d1\u6325\u4f5c\u7528\u3002<\/p>\n<p>&nbsp;<\/p>\n<p><strong>3.\u5c3d\u91cf\u51cf\u5c11PHP\u548c\u6570\u636e\u5e93\u67e5\u8be2<\/strong><br \/>\n\u5728<a href=\"http:\/\/wpcandy.com\/articles\/tutorials\/4-simple-ways-to-speed-up-wordpress.html\">4 Simple Ways To Speed Up WordPress<\/a>\u8fd9\u7bc7\u6587\u7ae0\u4e2d\u63d0\u51fa\uff0c\u51cf\u5c11PHP\u548c\u6570\u636e\u5e93\u67e5\u8be2\u53ef\u4ee5\u51cf\u8f7b\u7f51\u7ad9\u670d\u52a1\u5668\u7684\u8d1f\u62c5\u3002\u6bcf\u6b21\u52a0\u8f7d\u7f51\u9875\u65f6\uff0c\u5982\u679c\u6d4f\u89c8\u5668\u5df2\u7ecf\u6267\u884c\u4efb\u4f55PHP\u7684\u67e5\u8be2\uff0c\u5b83\u5c06\u589e\u52a0\u4f60\u7b49\u5f85\u6253\u5f00\u9875\u9762\u65f6\u95f4\u3002\u5982\u679c\u7528HTML\u53d6\u4ee3\u67d0\u4e9bPHP \uff0c\u90a3\u4e48\u9875\u9762\u52a0\u8f7d\u65f6\uff0c\u6d4f\u89c8\u5668\u4ec5\u4ec5\u53ea\u662f\u8bfb\u53d6HTML\u3002<br \/>\n\u4f8b\u5982\uff1a\u53ef\u4ee5\u5c06hedaer\u6587\u4ef6\u4e2d\u7684<\/p>\n<div>\n<div>&lt;h1 id=&#8221;title&#8221;&gt;&lt;!&#8211;p bloginfo(&#8216;name&#8217;);&#8211;&gt;&lt;\/h1&gt;<\/div>\n<\/div>\n<p>\u66ff\u6362\u4e3a<\/p>\n<div>\n<div>&lt;h1 id=&#8221;title&#8221; lang=&#8221;PHP&#8221;&gt;you blog name&lt;\/h1&gt;<\/div>\n<\/div>\n<div><\/div>\n<div><\/div>\n<div><\/div>\n<div><\/div>\n<p><strong>4.\u4ecemyPhpAdmin\u4e2d\u4f18\u5316\u548c\u4fee\u590d\u4f60\u7684\u6570\u636e\u5e93<\/strong><br \/>\n\u4f60\u5e94\u8be5\u7ecf\u5e38\u767b\u9646\u4f60\u7684myPhpAdmin\u6765\u4f18\u5316\u4f60\u7684\u6570\u636e\u5e93\u3002\u627e\u5230\u4f60\u7684WordPress\u7684DatabaseTables \uff0c\u9009\u4e2d\u6240\u6709\u8868\u683c\u7684\u590d\u9009\u6846\uff0c\u9009\u62e9 Optimise Tables Option \u548c repair\u3002\u4f60\u4f1a\u60ca\u8bb6\u8fd9\u4e2a\u6280\u5de7\u53ef\u80fd\u53ef\u4ee5\u5e2e\u4f60\u8282\u770110%\u4ee5\u4e0a\u7684\u6570\u636e\u5e93\u7a7a\u95f4\u3002 <figure class=\"mdx-lazyload-container\" style=\"max-width:500px\"><div style=\"padding-top:34.4%\"><\/div><div class=\"mdx-img-loading-sp mdui-valign\"><div><div class=\"mdui-spinner\"><\/div><\/div><\/div><img width=\"500\" height=\"172\" class=\"lazyload\" title=\"wordpress_speed_5\" src=\"data:image\/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==\" data-src=\"http:\/\/img.cnbeta.com\/newsimg\/090327\/1514490526755633.jpg\" alt=\"wordpress_speed_5\"><\/figure><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p><strong>5.\u4f7f\u7528\u53ef\u9760\u7684\u56fe\u7247\u6258\u7ba1\u670d\u52a1<\/strong><br \/>\n\u5c3d\u53ef\u80fd\u5c06\u6587\u7ae0\u4e2d\u7684\u56fe\u7247\u4fdd\u5b58\u5230\u5176\u4ed6\u5730\u65b9\uff0c\u5982Google Picasa,Flickr\u7b49\u3002\u800c\u4e0d\u662f\u4e0a\u4f20\u5230\u4f60\u7684\u670d\u52a1\u5668\u4e0a\u3002\u8fd9\u6837\u505a\u53ef\u4ee5\u4f7fWeb\u670d\u52a1\u5668\u51cf\u5c11\u5f88\u591a\u5e73\u5747CPU\u8d1f\u8f7d\/\u5b58\u50a8\u8981\u6c42\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p><strong>6.\u4f18\u5316\u7f51\u7ad9\u4e2d\u7684\u56fe\u7247<\/strong><br \/>\n\u867d\u7136\u73b0\u5728\u4e0a\u7f51\u901f\u5ea6\u5728\u4e0d\u65ad\u7684\u63d0\u5347\uff0c\u4f46\u662f\u5c3d\u53ef\u80fd\u51cf\u5c0f\u56fe\u7247\u7684\u4f53\u79ef\u4e5f\u662f\u6709\u5fc5\u8981\u7684\uff0c\u5f53\u7136\uff0c\u662f\u5728\u4fdd\u8bc1\u56fe\u7247\u8d28\u91cf\u7684\u524d\u63d0\u4e0b\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p><strong>7.\u5b89\u88c5WP Super Cache\u63d2\u4ef6<\/strong><br \/>\n<a href=\"http:\/\/wordpress.org\/extend\/plugins\/wp-super-cache\/\">WP Super Cache<\/a>\u63d2\u4ef6\u53ef\u4ee5\u8ba9\u4f60\u7684WordPress\u751f\u6210\u9759\u6001\u7684HTML\u9875\u9762\u3002\u5728\u4f60\u8bbf\u95ee\u7f51\u7ad9\u65f6\uff0c\u770b\u5230\u7684\u662f\u5728\u4f60\u7684WEB\u670d\u52a1\u5668\u4e2d\u751f\u6210HTML\u6587\u4ef6\uff0c\u800c\u4e0d\u662f\u53cd\u590d\u5730\u8ba9\u670d\u52a1\u5668\u7aef\u5904\u7406PHP\u811a\u672c\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p><strong>8.\u5b89\u88c5WP CSS\u63d2\u4ef6<\/strong><br \/>\n<a href=\"http:\/\/wordpress.org\/extend\/plugins\/wp-css\/\">WP CSS<\/a>\u63d2\u4ef6gzip\u4f60\u7684CSS\u6587\u4ef6\u4e2d\u7684\u7a7a\u683c\uff0c\u5b83\u4f7f\u60a8\u80fd\u591f\u5b89\u5fc3\u5730@import CSS\u6587\u4ef6\uff0c\u800c\u65e0\u9700\u62c5\u5fc3\u4f1a\u5728\u7528\u6237\u7aef\u53d1\u751f\u4ec0\u4e48\u3002\u53ef\u4ee5\u5bf9\u7f13\u5b58\u65f6\u95f4\u4e5f\u8fdb\u884c\u8bbe\u7f6e\uff0c\u8fd8\u53ef\u4ee5\u7ed9\u7279\u5b9a\u9875\u9762\u6216\u8005\u6587\u7ae0\u6dfb\u52a0CSS\u6587\u4ef6\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p><strong>9.\u5b89\u88c5DB Cache\u63d2\u4ef6<\/strong><br \/>\n<a href=\"http:\/\/wordpress.org\/extend\/plugins\/db-cache\/\">DB Cache<\/a>\u63d2\u4ef6\u53ef\u4ee5\u5bf9\u6bcf\u4e2a\u6570\u636e\u5e93\u67e5\u8be2\u8fdb\u884c\u7ec8\u751f\u7f13\u5b58\uff0c\u5b83\u7684\u4f18\u70b9\u5728\u4e8e\u901f\u5ea6\u8fdc\u8fdc\u8d85\u8fc7\u5176\u4ed6\u7684HTML\u7f13\u5b58\u63d2\u4ef6\u548c\u4f7f\u7528\u8f83\u5c11\u7684\u78c1\u76d8\u7a7a\u95f4\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p><strong>10.\u663e\u793a\u9875\u9762\u52a0\u8f7d\u65f6\u95f4<\/strong><br \/>\n\u5728\u6a21\u677f\u7684\u9002\u5f53\u4f4d\u7f6e\u63d2\u5165\u4e00\u4e2a\u7b80\u5355\u7684\u4ee3\u7801\uff0c\u53ef\u4ee5\u77e5\u9053\u82b1\u8d39\u4e86\u591a\u5c11\u65f6\u95f4\u6765\u52a0\u8f7d\u7f51\u9875\u3002\u8fd9\u4e2a\u5c0f\u63d0\u793a\u5f88\u597d\u7684\u8ba9\u4f60\u4e86\u89e3\u4f60\u7684WordPress\u7684\u4f18\u5316\u3002<\/p>\n<div>\n<div>&lt;!&#8211;p echo get_num_queries();&#8211;&gt; queries in &lt;!&#8211;p timer_stop(1);&#8211;&gt; seconds.<\/div>\n<\/div>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p><strong>11.\u4f7f\u7528Optimize DB<\/strong><br \/>\n<a href=\"http:\/\/yoast.com\/wordpress\/optimize-db\/\">Optimize DB<\/a>\u63d2\u4ef6\u7684\u4f5c\u7528\u5728\u4e0e\u5b83\u53ef\u4ee5\u6709\u6548\u5f97\u4f18\u5316\u91cd\u7ec4\u4f60\u7684WordPress\u6570\u636e\u5e93\u8868\u3002\u754c\u9762\u5f88\u7b80\u5355\uff0c\u53ea\u6709\u4e00\u4e2a\u6309\u94ae\uff1aOptimize Now\u3002<\/p>\n<a href=\"http:\/\/img.cnbeta.com\/newsimg\/090327\/151452155363066.png\"><figure class=\"mdx-lazyload-container\" style=\"max-width:553px\"><div style=\"padding-top:39.240506329114%\"><\/div><div class=\"mdx-img-loading-sp mdui-valign\"><div><div class=\"mdui-spinner\"><\/div><\/div><\/div><img width=\"553\" height=\"217\" class=\"lazyload\" title=\"optimize-db\" src=\"data:image\/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==\" data-src=\"http:\/\/img.cnbeta.com\/newsimg\/090327\/151452155363066.png\" alt=\"optimize-db\"><\/figure><\/a>\n","protected":false},"excerpt":{"rendered":"<p>1.\u5347\u7ea7\u5230Wordpress\u7684\u6700\u65b0\u7248\u672c\uff08beta\u7248\u9664\u5916 &#8211; -#\uff09 WordPress 2.7\u76f8\u5bf9 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"close","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1,11],"tags":[],"class_list":["post-218","post","type-post","status-publish","format-standard","hentry","category-wordpress","category-11"],"_links":{"self":[{"href":"https:\/\/sdeno.com\/index.php?rest_route=\/wp\/v2\/posts\/218","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sdeno.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sdeno.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sdeno.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/sdeno.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=218"}],"version-history":[{"count":0,"href":"https:\/\/sdeno.com\/index.php?rest_route=\/wp\/v2\/posts\/218\/revisions"}],"wp:attachment":[{"href":"https:\/\/sdeno.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=218"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sdeno.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=218"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sdeno.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=218"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}