WPThumbs
Themes Plugins By purpose By industry Best-of lists Fix it guides
Free Plugin by hide v7.3.2

C3 Cloudfront Cache Controller

This is simple plugin that clear all cloudfront cache if you publish posts.

C3 Cloudfront Cache Controller

The facts

Rating
4.3★ from 3
Active installs
3k+
Price
Free
Last updated
23 Mar 2026
Added
Nov 2015
Requires WP
4.9.0
Tested up to
WP 6.9.7
Requires PHP
7.4
Downloads
303,069

Our analysis

AI-assisted

C3 Cloudfront Cache Controller is a WordPress plugin designed to clear the CloudFront cache whenever you publish posts. It simplifies the integration of CloudFront with WordPress by automatically invalidating the cache for various page URLs, including the top page, published posts, and category archives.

The plugin also includes features for handling mobile device detection through CloudFront headers and managing caching for logged-in users. It requires configuration with AWS credentials and distribution ID, which can be set in the wp-config.php file.

Best for: This plugin is suitable for WordPress users who utilise AWS CloudFront for content delivery.

What it does well

  • Clears CloudFront cache on post publication
  • Supports mobile device detection
  • Manages cache for logged-in users
  • Configurable via environment variables

Where it falls short

  • Limited information on additional features
  • Requires AWS configuration for full functionality

Verdict

C3 Cloudfront Cache Controller provides a straightforward solution for managing CloudFront cache in WordPress, though it requires some technical setup.

From the developer

hide's own description of C3 Cloudfront Cache Controller, lightly tidied.

This is simple plugin that clear all cloudfront cache if you publish posts.
You can easy use CloudFront in front of WordPress.

Fixtures

  • wp_is_mobile()
    Check device viewer type by CloudFront header.
    Now supports HTTP_CLOUDFRONT_IS_MOBILE_VIEWER and HTTP_CLOUDFRONT_IS_TABLET_VIEWER.

  • preview url
    In preview page, plugin add post_date query to avoid CloudFront cache.
    And set wordpress_loginuser_last_visit cookie for avoid CloudFront cache too.

The wordpress_loginuser_last_visit cookie will be removed if user sign out.

Invalidation(Clear Cache) Page URL

This plugin send following page url to CloudFront Invalidation API.

  • TOP page URL
  • Published Post Page URL
  • Category Archive Page URL

AWS IAM Policy Example

{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Action": [
                "cloudfront:GetDistribution",
                "cloudfront:ListInvalidations",
                "cloudfront:GetStreamingDistribution",
                "cloudfront:GetDistributionConfig",
                "cloudfront:GetInvalidation",
                "cloudfront:CreateInvalidation"
            ],
            "Effect": "Allow",
            "Resource": "*"
        }
    ]
}

Note: The cloudfront:GetInvalidation permission is required for viewing detailed invalidation information. If this permission is not granted, the detail view feature will be disabled gracefully without affecting other plugin functionality.

Adding your configuration through env vars

The plugin can be configured by defining the following variables:

  • AWS_ACCESS_KEY_ID
  • AWS_SECRET_ACCESS_KEY
  • C3_DISTRIBUTION_ID

You can put these variables like the code into the wp-config.php

php
define( 'AWS_ACCESS_KEY_ID', '' );
define( 'AWS_SECRET_ACCESS_KEY', '' );
define( 'C3_DISTRIBUTION_ID', '' );

Cookie

Read the full description on the official page →

Tagged as

Alternatives

Other plugins for making sites fast.

WP-Optimize

Get caching and more with this powerful cache plugin. Cache, optimize images, clean your database and minify f...

Free 1M+ installs 4.8★ (2,606)
LiteSpeed Cache

All-in-one unbeatable acceleration & PageSpeed improvement: caching, image/CSS/JS optimization...

Free 7M+ installs 4.8★ (2,764)
EWWW Image Optimizer

Comprehensive image optimization with WebP, AVIF, Lazy Load, and more. Optimize images automatically for Faste...

Free 1M+ installs 4.8★ (1,838)
Under Construction

Easy to use Under Construction Page & Coming Soon Page. Enable Under Construction Mode in seconds & sh...

Free 600k+ installs 4.8★ (1,285)
Smush

Smush

93

Compress and optimize images, enable lazy load, serve WebP & AVIF, and speed up your site with a global im...

Free 1M+ installs 4.8★ (6,051)
Converter for Media

Speed up your website by using our WebP & AVIF Converter. Optimize images and serve WebP and AVIF images i...

Free 500k+ installs 4.9★ (1,097)