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½Ã ÀÛµ¿ÇÏÁö ¾Ê½À´Ï´Ù.
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 ³» µðÁöÅÐ »ýȰ Æ÷·³ .
Related Articles °ü·Ã ±â»ç
- Unzip or Decompress or Uncompress Gzip (.gz or .gzip) Files in Windows ÁöÆÛ¸¦Çϰųª ¾ÐÃà ¶Ç´Â ¾ÐÃà Gzip (. gz ¶Ç´Â Windows¿¡¼. gzipÀ») ÆÄÀÏ
- Run WordPress at Top Fast Speed by Putting Objects and Variables into XCache or eAccelerator Cache Memory (Plugin) WordPressÀÇ Å¾¿¡¼ ºü¸¥ ¼Óµµ¸¦ ½ÇÇà XCache ¶Ç´Â eAccelerator·Î (Ç÷¯±×ÀÎ) ij½Ã ¸Þ¸ð¸® °³Ã¼¿Í º¯¼ö¸¦ ³Ö¾î
- Download WordPress 2.3 Release Candidate 1 (RC1) with Tags Support ´Ù¿î·Îµå WordPressÀÇ 2.3 ¸±¸®½º Èĺ¸ 1 ÅÂ±× Áö¿ø (RC1ÀÌ)
- Download Previous or Old Version of WordPress ÀÌÀü ¹öÀüÀ» ´Ù¿î·ÎµåÇϰųª ¿öµåÀÇ ÀÌÀü
- WordPress WYSIWYG Visual Editor Not Working or Not Appearing WordPressÀÇ ÀÛµ¿ WYSIWYG ºñÁÖ¾ó ¿¡µðÅ͸¦ ¾ÈÀ̳ªÇÏÁö °ÔÀç
- WordPress 2.1.1 Critical Security Alert - Download Upgrade to 2.1.2 ¿öµå 2.1.1 Áß¿ä º¸¾È °æº¸ - ´Ù¿î·Îµå 2.1.2·Î ¾÷±×·¹ À̵å
- Hide or Disable Snap Preview Anywhere (SPA Site Preview) Bubble Pop Up ¼û±â°Å³ª ºñȰ¼ºÈ ½º³ÀÀÎÀ» ¹Ì¸® ¾îµð¼³ª (½ºÆÄ »çÀÌÆ® ¹Ì¸®º¸±â) °Åǰ ÆË¾÷
- Integrate WordPress including Comments with bbPress Forum using bbSync WordPressÀÇ ÄÚ¸àÆ®¸¦ »ç¿ëÇÏ´Â µî ÅëÇÕ bbPress Æ÷·³°ú ÇÔ²² bbSync
- How to Change the Frequency or Interval WordPress Auto Saves An Editing Post or Page ¾î¶»°Ô Á֯ļö¸¦ ÀÚµ¿À¸·Î ¼¼À̺긦 ÆíÁý ¶Ç´Â °£°Ý WordPressÀÇ Æ÷½ºÆ® ¶Ç´Â ÆäÀÌÁö¸¦ º¯°æÇÏ´Â ¹æ¹ý
- Disable WordPress 2.3 Core and Plugins Update Check and Notification WordPressÀÇ 2.3 ÄÚ¾î ¹× Ç÷¯±×ÀÎÀ» ÇØÁ¦ ¾÷µ¥ÀÌ Æ®¸¦ È®ÀÎÇÏ°í ¾Ë¸²

































September 20th, 2008 08:32 9 ¿ù 20 ÀÏ 2008 08:32
Thanks this code edit really increased my page load time ÀÌ Äڵ带 ¼öÁ¤ °í¸¶¿ö Á¤¸» ³» ÆäÀÌÁö·Îµå ½Ã°£À» Áõ°¡