Enable Gzip Compress on Wordpress with WP-Cache 2.x Kích hoạt Gzip Nén trên Wordpress với WP-Cache 2.x

WP-Cache is a page caching system plugin for WP-Cache là một trang caching plugin hệ thống cho Wordpress Wordpress blog that cache Wordpress pages during the first load or after a page expired, and store each Wordpress page in a static HTML file which in turn used to serve future requests. blog mà bộ nhớ cache Wordpress trang đầu tiên trong quá tải hoặc sau khi một trang đã hết hạn, và lưu trữ từng trang Wordpress trong một tệp HTML tĩnh đó lần lượt sử dụng để phục vụ yêu cầu trong tương lai. This process of web server serving the HTML pages directly from the file rather than building the page again by loading and compiling the whole PHP code, and retrieving the necessary data from the database where there is any page request significantly reduces the resource needed to run a responsive and fast website. Quá trình này của máy chủ web phục vụ các trang HTML trực tiếp từ tập tin hơn là xây dựng trang một lần nữa bằng tải và biên dịch mã PHP cả, và lấy các dữ liệu cần thiết từ cơ sở dữ liệu các nơi có yêu cầu bất kỳ trang làm giảm đáng kể nguồn lực cần thiết để chạy một đáp ứng và nhanh chóng website. Meanwhile, Gzip compression is an option provided by Wordpress that allows web server to serve the articles in compressed format if request by supported web browser, reducing bandwidth used and improving performance. Trong khi đó, Gzip nén là một tùy chọn được cung cấp bởi Wordpress, cho phép web server để phục vụ những bài viết ở định dạng nén nếu yêu cầu bởi trình duyệt web được hỗ trợ, giảm băng thông sử dụng và cải thiện hiệu suất.

If you install WP-Cache version 2.0 or 2.1, you will be requested to turn off or disable Gzip compression in Options -> Reading tab. Nếu bạn cài đặt WP-Cache phiên bản 2.0 hoặc 2.1, bạn sẽ được yêu cầu tắt hoặc nén Gzip vô hiệu hóa trong Options -> đọc thẻ. Although WP-Cache2 is fast enough, however, you can still try to enable the Gzip compression to further speed up the web server, improve the overall performance of network and website, and save the network bandwidth, by using the following trick. Mặc dù WP-Cache2 là đủ nhanh, tuy nhiên, bạn vẫn có thể cố gắng để kích hoạt nén Gzip để tiếp tục tăng tốc độ máy chủ web, cải thiện hiệu suất tổng thể của mạng và trang web, và tiết kiệm băng thông mạng, bằng cách sử dụng lừa sau. The hack allows Gzip compression to be used with WP-Cache system, by making WP-Cache compress the page articles, instead of Wordpress. Các hack cho phép Gzip nén để được sử dụng với WP-Cache hệ thống, bằng cách làm WP-Cache nén của bài viết trang, thay vì Wordpress.

To turn on Gzip compression of web page while using WP-Cache 2, simply edit the wp-cache-phase1.php which is located in the WP-Cache plug-in folder inside the Plugins directory with text editor such as vi: Để bật Gzip nén của trang web trong khi sử dụng WP-Cache 2, chỉ cần chỉnh sửa wp-cache-phase1.php mà nằm ở WP-Cache plug-in thư mục bên trong thư mục Plugins với trình soạn thảo văn bản như vi:

Add the following line: Thêm dòng sau đây:

if ( extension_loaded('zlib') ) ob_start('ob_gzhandler'); nếu (extension_loaded ( 'zlib')) ob_start ( 'ob_gzhandler');

Before this line: Trước khi dòng này:

foreach ($meta-»headers as $header) { foreach ($ meta-headers »như là $ header) (

Note that you still should not turn on or enable the Gzip compress article in Wordpress. Lưu ý rằng bạn vẫn không nên bật hoặc cho phép các bài nén Gzip trong Wordpress. If you do so, WP-Cache will not work. Nếu bạn làm như vậy, WP-Cache sẽ không hoạt động.

Source Nguồn

IMPORTANT : The page is machine translated and provided "as is" without warranty. Quan trọng: Sửa là máy dịch và cung cấp "như là" không có bảo hành. Machine translation may be difficult to understand. Máy dịch thuật có thể khó hiểu. Please refer to Vui lòng tham khảo original English article bản gốc tiếng Anh bài viết whenever possible. bất cứ khi nào có thể.


One Response to “Enable Gzip Compress on Wordpress with WP-Cache 2.x” Một trong những đáp ứng cho "Enable Gzip Nén trên Wordpress với WP-Cache 2.x"

  1. Web Hosting Coupon Codes Web Hosting Coupon Codes
    September 20th, 2008 08:32 Ngày 20 Tháng Chín 2008 08:32
    1 1

    Thanks this code edit really increased my page load time Nhờ sửa mã này thực sự gia tăng thời gian tải của trang của tôi

Leave a Reply Để lại một trả lời

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> Bạn có thể sử dụng các thẻ: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime = ""> <em> <i> <q <strike> <strong>

Subscribe to comments feature has been disabled. Thuê bao với ý kiến đều đã bị vô hiệu hoá. To receive notification of latest comments posted, subscribe to Để nhận được thông báo mới nhất đăng ý kiến, đăng ký với My Digital Life Comments RSS feed My Digital Life kiến RSS feed or hoặc register to receive đăng ký để nhận được new comments in daily email digest. Các ý kiến mới trong email tiêu hàng ngày.
Custom Search

New Articles Bài viết mới

Incoming Search Terms for the Article Tìm đến các Điều khoản Điều

wordpress gzip wordpress gzip - -- gzip wordpress gzip wordpress - -- wordpress gzip compression wordpress gzip nén - -- wordpress compression wordpress nén - -- gzip compression wordpress gzip nén wordpress - -- wordpress compress wordpress nén - -- how to gzip wordpress làm thế nào để gzip wordpress - -- Gzip for wordpress Gzip cho wordpress - -- gzip in wordpress gzip trong wordpress - -- wordpress enable gzip compression wordpress cho phép nén gzip - -- wordpress gzip wordpress gzip - -- enable gzip compression wordpress wordpress cho phép nén gzip - -- HTTP compression wordpress HTTP nén wordpress - -- wordpress +gzip wordpress + gzip - -- wordpress compress gzip wordpress nén gzip - -- wordpress gzip plugin gzip wordpress plugin - -- wordpress compress javascript wordpress nén javascript - -- compression wordpress nén wordpress - -- gzip on wordpress gzip trên wordpress - -- gzip wordpress plugin gzip wordpress plugin - -- compress wordpress nén wordpress - -- gzip compression in wordpress gzip nén trong wordpress - -- wordpress disable gzip wordpress gzip vô hiệu hóa - -- disable gzip wordpress vô hiệu hóa gzip wordpress - -- gzip wordpress gzip wordpress - -- wordpress plugin gzip wordpress plugin gzip - -- activate compression wordpress kích hoạt wordpress nén - -- gzip wordpress gzip wordpress - -- wordpress how to enable gzip wordpress cách kích hoạt gzip - -- wordpress turn off compression wordpress tắt nén - -- wordpress turn off gzip wordpress tắt gzip - -- enabling wordpress compression cho phép nén wordpress - -- "gzip" "wordpress" "gzip" "wordpress" - -- gzip wordpres gzip wordpres - -- gzipping wordpress gzipping wordpress - -- gzip and wordpress gzip và wordpress - -- enabling gzip compression wordpress wordpress cho phép nén gzip - -- turn on compression wordpress bật wordpress nén - -- enable gzip wordpress cho phép wordpress gzip - -- wordpress compressed header plugins wordpress plugins tiêu đề nén - -- wordpress gzip compress wordpress gzip nén - -- wordpress compress page wordpress nén trang - -- enable gzip compression for wordpress cho phép nén gzip cho wordpress - -- Enable gzip compression Kích hoạt tính năng gzip nén - -- wordpress javascript compression wordpress nén javascript - -- using gzip in wordpress sử dụng gzip trong wordpress - -- WordPress should compress articles (gzip) WordPress nên nén bài viết (gzip) - -- wordpress js compression wordpress js nén - -- wordpress javascript compress wordpress nén javascript - -- wordpress HTTP compression wordpress HTTP nén - --