Enable Gzip Compress on Wordpress with WP-Cache 2.x Gzip ¾ÐÃàÀ» Ȱ¼ºÈ­ Wordpress¿¡ Æ÷½ºÆ® - ij½Ã 2.x´Â

WP-Cache is a page caching system plugin for Æ÷½ºÆ® - ij½Ã ÆäÀÌÁö¿¡ ´ëÇÑ Ä³½Ì ½Ã½ºÅÛ¿¡ Ç÷¯±×ÀÎÀÔ´Ï´Ù 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. ù ¹øÂ°·ÎµåÇϰųª ÆäÀÌÁöÀÇ ¸¸·á ±â°£ ÈÄ, ±× ij½Ã Wordpress ÆäÀÌÁö¸¦ ºí·Î±×¿Í Á¤Àû HTML ÆÄÀÏ¿¡ÀÖ´Â °¢ Wordpress ÆäÀÌÁö¸¦ ÀúÀåÇÏ´Â ¹Ì·¡ÀÇ ¿äûÀ» ¼­ºñ½ºÇÏ´Â µ¥ »ç¿ëµÇ´Â Â÷·Ê. 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. À¥ ¼­¹ö¿¡¼­ Á÷Á¢ ÆÄÀϺ¸´Ù´Â ÆäÀÌÁö¸¦ ´Ù½Ã ·Îµù ¹× °Ç¹° Àüü¸¦ PHP Äڵ带 ÄÄÆÄÀÏÇÏ¿© HTML ÆäÀÌÁö¸¦ ¼­ºñ½ºÀÇ ÇÁ·Î¼¼½º¿Í µ¥ÀÌÅͺ£À̽º¿¡¼­ µ¥ÀÌÅ͸¦ °Ë»öÇÏ´Â µ¥ ÇÊ¿äÇÑ ¸®¼Ò½º¸¦ ½ÇÇàÇÏ´Â µ¥ ÇÊ¿äÇÑ °÷¿¡ Å©°Ô ÁÙ¿© ¸ðµç ÆäÀÌÁö ¿äûÀÔ´Ï´Ù ¹ÝÀÀÀÌ ºü¸£°í À¥»çÀÌÆ®. 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. ÇÑÆí, gzip ¾ÐÃà ¿É¼ÇÀ» WordpressÇÏ¿© À¥ ¼­¹ö¿¡ ¾ÐÃàµÈ Çü½ÄÀ¸·Î ±â»ç¸¦ Áö¿øÇÏ´Â À¥ ºê¶ó¿ìÀú¿¡ ÀÇÇØ ¿äûÇÏ´Â °æ¿ì, ´ë¿ªÆø »ç¿ë Àý°¨ ¹× ¼º´É °³¼±À» ¼¶±æ ¼ö ÀÖµµ·Ï Á¦°øµË´Ï´Ù.

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. Æ÷½ºÆ® - ij½Ã ¹öÀüÀ» ¼³Ä¡Çϸé 2.0 ¶Ç´Â 2.1, ´ç½ÅÀ̳ª ¿É¼ÇÀ» ÇØÁ¦ gzip ¾ÐÃà ÇØÁ¦¸¦ ¿äûÇÑ´Ù -> Àбâ ÅÇÀ» Ŭ¸¯ÇϽʽÿÀ. 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. Æ÷½ºÆ® - Cache2´Â ÃæºÐÈ÷ ºü¸£Áöµµ ÀÖÁö¸¸, ±×·¯³ª ¾ÆÁ÷µµ ´õ À¥ ¼­¹öÀÇ ¼Óµµ·Î gzip ¾ÐÃà, ³×Æ®¿öÅ©¿Í À¥»çÀÌÆ®ÀÇ Àü¹ÝÀûÀÎ ¼º´ÉÀ» Çâ»ó½Ãų ¼ö ÀÖµµ·Ï ³ë·ÂÇÏ°í ³×Æ®¿öÅ© ´ë¿ªÆøÀ» Àý¾àÇϱâ, ´ÙÀ½ÀÇ Æ®¸¯À» »ç¿ëÇÏ¿©. The hack allows Gzip compression to be used with WP-Cache system, by making WP-Cache compress the page articles, instead of Wordpress. ¾ÐÃà Æ÷½ºÆ®¿Í ÇÔ²² »ç¿ëµÉ - ij½Ã ½Ã½ºÅÛ, Æ÷½ºÆ® - ij½Ã, Wordpress ´ë½Å ÆäÀÌÁö¸¦ ¸¸µå´Â Gzip ±â»ç¸¦ ¾ÐÃàÇÒ ¼öÀÖ´Â ÇØÅ·.

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: ¹Ý¸é Æ÷½ºÆ® - ij½Ã¸¦ »ç¿ëÇÏ¿©ÀÌ À¥ ÆäÀÌÁöÀÇ gzip ¾ÐÃà¿¡, ´Ü¼øÈ÷ - ij½Ã - phase1.php´Â Æ÷½ºÆ®¿¡ - ij½Ã Ç÷¯±× - vi¿Í °°Àº ÅØ½ºÆ® ÆíÁý±â¿Í Ç÷¯±×ÀÎ µð·ºÅ丮 ¾ÈÀÇ Æú´õ¿¡ :ÀÖ´Â °ÍÀº wp¸¦ ¼³Á¤ÇÏ·Á¸é ÆíÁý

Add the following line: ´ÙÀ½ ÁÙÀ» Ãß°¡ÇÕ´Ï´Ù :

if ( extension_loaded(¡¯zlib¡¯) ) ob_start(¡¯ob_gzhandler¡¯); ¸¸¾à (( 'zlib ¿É¼Ç')) ob_start ( '. ob_gzhandler') extension_loaded;

Before this line: ÀÌ ¶óÀÎÀ»Çϱâ Àü¿¡ :

foreach ($meta-»headers as $header) { ÇÏ°Ô foreach ($ ¸ÞŸ -»Çì´õ·Î $ Çì´õ) (

Note that you still should not turn on or enable the Gzip compress article in Wordpress. ´ç½ÅÀº ¿©ÀüÈ÷ ¶Ç´Â Wordpress¿¡¼­ Gzip ¾ÐÃàÇÒ ¹®¼­ Ȱ¼ºÈ­ÇؾßÇÕ´Ï´Ù. If you do so, WP-Cache will not work. ÀÚ³×°¡ ±×·¸´Ù¸é, Æ÷½ºÆ® ÇÒ - ij½Ã ÀÛµ¿ÇÏÁö ¾Ê½À´Ï´Ù.

Source ±Ù¿ø

IMPORTANT : This is a machine translated page which is provided "as is" without warranty. Áß¿ä :ÀÌ ±â°è´Â "º¸Áõµµ¾øÀÌÀÖ´Â ±×´ë·Î"Á¦°øµË´Ï´Ù ÆäÀÌÁö¸¦ ¹ø¿ªÇß´Ù. Machine translation may be difficult to understand. ±â°è ¹ø¿ªÀ» ÀÌÇØÇϱ⠾î·Á¿ï ¼öÀÖ½À´Ï´Ù. Please refer to À» ÂüÁ¶ÇϽñ⠹ٶø´Ï´Ù original English article ¿ø·¡ ¿µ¾î ¹®¼­ whenever possible. ¾ðÁ¦µç °¡´ÉÇÕ´Ï´Ù.

Share and contribute or get technical support and help at °øÀ¯¿Í ±â¿©Çϰųª ±â¼ú Áö¿ø°ú¿¡ µµ¿òÀÌ My Digital Life Forums ³» µðÁöÅÐ »ýȰ Æ÷·³ .



One Response to ¡°Enable Gzip Compress on Wordpress with WP-Cache 2.x¡± ÇÑ Response "°¡ Ȱ¼ºÈ­ Gzip ¾ÐÃà Wordpress¿¡ Æ÷½ºÆ®¿ÍÀÇ - ij½Ã 2.x´Â"

  1. Web Hosting Coupon Codes À¥ È£½ºÆÃ ÄíÆù ÄÚµå
    September 20th, 2008 08:32 9 ¿ù 20 ÀÏ 2008 08:32
    1

    Thanks this code edit really increased my page load time ÀÌ Äڵ带 ¼öÁ¤ °í¸¶¿ö Á¤¸» ³» ÆäÀÌÁö·Îµå ½Ã°£À» Áõ°¡

Leave a Reply ȸ½ÅÀ» ³²°ÜÁÖ¼¼¿ä

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> ÀÌ·¯ÇÑ ÅÂ±× : title="">Àº <a href="" »ç¿ëÇÒ ¼öÀÖ½À´Ï´Ù <abbr title=""> <acronym title="">ÀÇ <b> <blockquote cite=""> <cite>ÀÇ <code> <¹ã ³¯Â¥ = "">Àº <em>°¡ <i> <q cite=""> <strike>ÀÇ <strong>

Subscribe without commenting ÄÚ¸àÆ®¸¦ ±¸µ¶ÇÏÁö ¾Ê°í


Custom Search

New Articles »õ ¹®¼­

Incoming Search Terms for the Article ¿¡ ´ëÇÑ °Ë»ö ¾à°ü¹Þ´Â Á¦

cache compress windows ij½Ã â¹®À» ¾ÐÃàÇÒ - - wordpress gzip ¿öµå´Â gzip - - wordpress compression WordPressÀÇ ¾ÐÃà - - per site enable zlib compression support »çÀÌÆ®¸¶´Ù Zlib ¾ÐÃà Áö¿øÀ» Ȱ¼ºÈ­ - - adsense russian gzip AdSense¸¦ gzipÀ» ·¯½Ã¾Æ¾î - - gzip wordpress gzipÀ» WordPressÀÇ - - internet explorer disable compression gzip Internet Explorer¸¦ ÇØÁ¦ÇÏ´Â ¾ÐÃàÀº gzip - - compress wordpress ¿öµå ¾ÐÃàÇÒ - - wordpress gzip plugin ¿öµå´Â gzip Ç÷¯±×ÀÎ - - turn on gzip on wordpress ¿öµå¿¡ gzipÀ» ÄÑ·Á¸é - - wordpress gzip ¿öµå´Â gzip - -