[WP] WP Super Cache 설치 방법

[WP] WP Super Cache 설치 방법

워드프레스의 느린 속도에 대한 대안으로 캐싱 플러그인이 어느 정도 커버를 해주고 있습니다. 그렇기 때문에 거의 필수적으로 설치해야할 플러그인 중 하나로 손꼽힙니다.

그 중에서도 WP Super Cache 가 제일 많이 알려져 있는듯 합니다.

하지만 그냥 플러그인 설치만하고 세팅하면 되는 줄 알았지만 에러를 뿜어내고 거의 2시간 동안 삽질한 것 같습니다.

바로 이 에러가 범인 Could not update /site_path/wp-content/wp-config.php! WP CACHE HOME

구글에서 검색을 해봐도 나오지 않고 메뉴얼도 영문이고 답답해서 처음엔 포기 했습니다만 결국 http://wordpress.org/plugins/wp-super-cache/faq/ 이 곳에서 알파벳 겨우 깨우친 저의 짧은 영어실력으로 짜집기해가며 안되는 번역과 예측으로 일단 해결을 했습니다. -_-

저 에러의 해결 방법입니다.

 

  1. Is wp-content writable by the web server?
  2. Is there a wp-content/wp-cache-config.php ? If not, copy the file wp-super-cache/wp-cache-config-sample.php to wp-content/wp-cache-config.php and make sure WPCACHEHOME points at the right place.
  3. Is there a wp-content/advanced-cache.php ? If not, then you must copy wp-super-cache/advanced-cache.php into wp-content/. You must edit the file and change the path so it points at the wp-super-cache folder.
  4. If pages are not cached at all, remove wp-content/advanced-cache.php and recreate it, following the advice above.
  5. Make sure the following line is in wp-config.php and it is ABOVE the “require_once(ABSPATH.’wp-settings.php’);” line:define( ‘WP_CACHE’, true ); 
  6. Try the Settings->WP Super Cache page again and enable cache.

 

  1. 웹서버에 있는 wp-content 디렉터리 쓰기 권한(755) 있는지 확인하세요.
  2. /wp-content/ 디렉터리에 wp-cache-config.php 파일이 존재하나요? 없다면 /wp-content/plugin/wp-super-cache/ 에 가서 wp-cache-config-sample.php 파일을 /wp-content/wp-cache-config.php 이름으로 복사해주세요.
  3. wp-content 디렉터리에 advance-cache.php 파일도 마찬가지로 없다면 /wp-content/plugin/wp-super-cache/에 있는 advance-cache.php 파일을 /wp-content/ 로 복사해주세요.
  4. 페이지 캐시가 안됐다면 /wp-content/advanced-cache.php 파일을 삭제하고 1번에서 부터 다시 해보세요.
  5. /wp-config.php 파일 열어서 “require_once(ABSPATH.’wp-settings.php’);” 바로 윗 줄에 define(‘WP_CACHE’, true); 를 추가해주세요.
  6. WP Super Cache 세팅 페이지를 다시 열어서 캐시 기능 활성해주세요.

 

위 과정을 진행하던 중 5번까지 마치고 6번에서 퍼미션 관련 에러가 나네요. 저 처럼 퍼미션 에러가 난다면 아래 디렉터리 권한을 확인해주세요.

  1. 1. /wp-content 디렉터리의 퍼미션은 755 를 권장합니다. (모든 권한인 777로 하면 경고 출력됩니다)
  2. 2. /wp-content/wp-cache-config.php의 퍼미션은 666 을 권장합니다.

 

특이사항이 없다면 이 과정으로 정상 작동이 될겁니다. Setting에서 Caching On 해주시고 Test Cache로 확인하시면 됩니다^^

%d 블로거가 이것을 좋아합니다: