Automatic Invalidation
Automatically invalidate CloudFront cache when posts are published or updated
Efficiently manage CloudFront cache invalidation for your WordPress site
Install the plugin and configure your AWS CloudFront settings:
# Using WP-CLI (recommended)
wp plugin install c3-cloudfront-clear-cache --activate
# Or install via WordPress Admin: Plugins > Add New > Search "C3 CloudFront Clear Cache"
After installation, configure the plugin through the WordPress admin:
Alternatively, you can define constants in wp-config.php
for enhanced security:
// Add to 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' );
When running WordPress behind AWS CloudFront, you need a reliable way to invalidate cached content when your site updates. This plugin provides:
The plugin is available on the WordPress Plugin Directory.