Skip to content

C3 CloudFront Cache ControllerWordPressプラグイン

WordPressサイトのCloudFrontキャッシュ無効化を効率的に管理

C3 CloudFront Cache Controller

クイックスタート

プラグインをインストールしてAWS CloudFront設定を構成します:

インストール

bash
# WP-CLIを使用(推奨)
wp plugin install c3-cloudfront-clear-cache --activate

# またはWordPress管理画面から:プラグイン > 新規追加 > 「C3 CloudFront Clear Cache」を検索

設定

インストール後、WordPress管理画面でプラグインを設定します:

  1. 設定 > C3 CloudFront Cache に移動
  2. CloudFront Distribution IDを入力
  3. AWS Access KeyとSecret Keyを入力
  4. 変更を保存 をクリック

または、セキュリティを向上させるためにwp-config.phpで定数を定義できます:

php
// wp-config.phpに追加
define( 'AWS_ACCESS_KEY_ID', 'your_access_key' );
define( 'AWS_SECRET_ACCESS_KEY', 'your_secret_key' );
define( 'C3_DISTRIBUTION_ID', 'your_distribution_id' );

C3 CloudFront Cache Controllerを選ぶ理由

WordPressをAWS CloudFrontの背後で実行する場合、サイトが更新されたときにキャッシュされたコンテンツを無効化する信頼できる方法が必要です。このプラグインは以下を提供します:

  • 自動キャッシュ無効化 - コンテンツが変更されたとき
  • バッチ処理 - 効率的なCloudFront API使用のため
  • カスタム無効化パス - 強力なフィルターを通じて
  • 本番環境対応 - 包括的なエラーハンドリング

WordPress.orgプラグイン

WordPress Plugin DownloadsWordPress Plugin VersionWordPress Plugin Rating

プラグインはWordPress Plugin Directoryで利用可能です。

コミュニティ

Released under the GPL License.