5 Golden Tips For WordPress Performance Optimization / Slashdot-Digg Protection五月黃金的秘訣在WordPress性能優化/ Slashdot的- digg保護
WordPress is a popular blogging software.在WordPress是一個受歡迎的博客軟件。 As a design decision it stores the blog content in database and uses php to fetch and display the pages.作為一個設計決定它儲存的博客內容在數據庫和使用PHP來擷取並顯示的頁面。 This consumes more resources (cpu and memory) than blogging softwares generating static pages.這個消耗更多的資源( CPU和內存) ,比博客軟件生成靜態網頁。 Here are 5 tried and tested power tips to reduce memory & cpu resources and speed up your wordpress based sites.這裡有5久經考驗的權力提示,以減少記憶體及CPU資源,並加快您的WordPress所基於的網站。
Speed up PHP code execution. 加快PHP代碼執行。
There are several php code accelerators available.有幾個PHP代碼加速器。 I我 recommend eAccelerator建議eaccelerator based on performance and stability.基於對性能和穩定性。 Use it with at least 128MB RAM ( eaccelerator.shm_size = “128″ ).使用它,至少128 MB的記憶體( eaccelerator.shm_size = “ 128 ” ) 。 You will observe significant performance benefit from this.您將遵守顯著的性能受惠。 Note the average cpu utilization before and after.注意:平均CPU使用率之前和之後。
Optimize MySQL server installation 優化MySQL服務器安裝
MySQL on Linux get installed by default with minimal configuration which is suitable for low end machine. MySQL的在Linux上獲得的默認安裝位置與最小配置是適合低端機。 It doesn’t make use of the memory of your system you may have.它沒有使用的記憶您的系統,你可能有。 There are several online guide to configure mysql for better memory utilization and overall optimum performance.有幾個在線指南配置MySQL的更好的內存利用和整體最優的性能。 I used the following settings:我用了以下設置:
key_buffer = 256M key_buffer = 256米
max_allowed_packet = 1M max_allowed_packet =一米
table_cache = 256 table_cache = 256
sort_buffer_size = 1M sort_buffer_size = 1米
read_buffer_size = 1M read_buffer_size = 1米
read_rnd_buffer_size = 4M read_rnd_buffer_size = 4米
myisam_sort_buffer_size = 64M myisam_sort_buffer_size =六四米
thread_cache_size = 8 thread_cache_size = 8
query_cache_size= 16M query_cache_size =一六米
Read the fine manual for explanations on each of these settings可閱讀手冊的解釋,每一個這些設置 ![]()
You may also want to enable slow query log and identify the slow queries.您可能還希望,使慢速查詢日誌,並找出緩慢疑問。 Progressively reduce the time as you better optimize the queries.逐步減少的時間為您提供更好的優化查詢。
Slim & trim WordPress. 小井&修剪的WordPress 。
WordPress is supported by tons of free and paid plugins. WordPress所支持噸的免費和付費的插件。 However many of them are not optimized.但是他們很多是沒有得到優化。 The slow query log step above should help you to identify the slow queries.慢速查詢日誌上述步驟應該能夠幫助您識別緩慢的疑問。 Search the plugin source code to identify the plugins responsible.搜索插件的源代碼,以確定插件負責。 Work, politely, with the authors to resolve the issue.工作,禮貌地,與作者,以解決問題。 If that doesn’t work, look for alternatives or disable the plugin.如果沒有工作,尋找替代品或禁用插件。 Plugins should be used in moderation.插件應該用在放緩。 Prefer plugins for functionality rather than cool / wow factor.喜歡的外掛程式的功能,而非冷靜/哇因素。 Many plugins imposes a significant cost in terms of resource and performance.許多插件施加了顯著的成本而言,資源和性能。
Staticize your pages. staticize您的網頁上。
wp-cache 2 is a WordPress plugin which will cache your page output in a file ( 可濕性粉劑緩存2是一個wordpress插件會緩存您的頁面輸出在一個文件中( download下載 ). ) 。 For future requests of the same page it serves the content directly from the file thereby bypassing the need for database queires and further php code execution.為今後的要求是相同的網頁服務的內容直接從該文件,從而繞過需要數據庫queires和進一步的PHP代碼執行。 It recognizes when any page content has changed.它承認,當任何網頁的內容發生了變化。 Unfortunately it then invalidates the whole cache instead of the page itself and other pages which are likely to change.可惜無效,那麼整個高速緩存而不是網頁本身和其他的頁面,有可能改變。
It will also invalidate the whole cache it a comment is added to any post.它也將失效,整個快取記憶體,它的評論是說,任何職位。 This is a problem for highly commented blogs.這是一個問題,高度評價博客。 I had posted a solution to this problem:我曾發布了解決這個問題: How To Improve Performance of Highly Commented WordPress Blogs如何提高的表現,高度評價WordPress Blogs的 . 。
At some point you still will have to move to a better server - from shared hosting to在一些點,你還有將移動到更好的服務器-從共同主辦,以 VPS (virtual private server)電子道路收費(虛擬專用服務器) and then from VPS to dedicated server(s).然後由電子道路收費,以專用服務器( ) 。 And then you may have to use a caching reverse proxy server for load balancing between multiple apache servers.然後您可能必須使用一個緩存反向代理服務器的負載平衡之間的多個Apache服務器。 Trust me you will want to face this type of challenges for now in you are in the big league相信我,你將要面對這種類型的挑戰,現在在你身在大聯盟 ![]()
Filed under提起下 Headline News頭條新聞 , , How To如何 , , Linux Linux的 , , Pro Blogging贊成Blogging , , Technology技術 , , Web網頁 , , Web 2.0 Web 2.0的 , , Web Hosting虛擬主機 , , Web Services Web服務 , , WordPress在WordPress , , WordPress Plugin wordpress插件 | |
| |
RSS 2.0 2.0 | |
Trackback Trackback跟踪 this Article |此文章|
Email this Article電子郵件此文章
You may also like to read您也可以想讀 |



