Title: Full Site Cache for CloudFront
Author: ze3kr
Published: <strong>January 29, 2017</strong>
Last modified: February 27, 2017

---

Search plugins

This plugin **hasn’t been tested with the latest 3 major releases of WordPress**.
It may no longer be maintained or supported and may have compatibility issues when
used with more recent versions of WordPress.

![](https://s.w.org/plugins/geopattern-icon/full-site-cache-cf.svg)

# Full Site Cache for CloudFront

 By [ze3kr](https://profiles.wordpress.org/ze3kr/)

[Download](https://downloads.wordpress.org/plugin/full-site-cache-cf.0.0.2.zip)

 * [Details](https://wordpress.org/plugins/full-site-cache-cf/#description)
 * [Reviews](https://wordpress.org/plugins/full-site-cache-cf/#reviews)
 *  [Installation](https://wordpress.org/plugins/full-site-cache-cf/#installation)
 * [Development](https://wordpress.org/plugins/full-site-cache-cf/#developers)

 [Support](https://wordpress.org/support/plugin/full-site-cache-cf/)

## Description

If you blog are using CloudFront on the main WordPress domain (e.g. www.example.
com), and you want to cache HTML page for not logged in user. You could set a long“
Default TTL” for these HTML pages if the cache could invalidate automatically.

#### Invalidation behaviors

 * Invalidate the whole cache when a new post published
 * Invalidate a post page when a post updated
 * Invalidate a post page if have any comment has changed on that page
 * Each invalidation has a minimum interval of 10 minutes

#### Requirements

 * PHP 5.4+
 * WordPress 4.4+
 * A CloudFront account and AWS Access Key and Secret Key to access [CloudFront distribution](https://tlo.xyz/create-cloudfront-distribution-for-wordpress/).

#### Recommendations

 * Offload CSS, JS and medias file to another domain with a different distribution,
   because this plugin will invalidate the whole cache when updating the post.

## Installation

First, you need to [use CloudFront on your WordPress site](https://tlo.xyz/create-cloudfront-distribution-for-wordpress/).

Add the configuration code to your `wp-config.php` file **above** the line reading`/*
That’s all, stop editing! Happy blogging. */`.

Example configuration:

    ```
    $tlo_cf_id[1] = 'DISTRIBUTION_ID';
    define( 'AWS_ACCESS_KEY_ID', '********************' );
    define( 'AWS_SECRET_ACCESS_KEY', '****************************************' );
    $wp_rich_edit = true; // CloudFront will remove user-agent header, so if you want to have Visual Editor, keep this line.
    ```

This plugin supports multisite, just replace 1 in the `$tlo_cf_id[]` to the blog
id.

## Reviews

There are no reviews for this plugin.

## Contributors & Developers

“Full Site Cache for CloudFront” is open source software. The following people have
contributed to this plugin.

Contributors

 *   [ ze3kr ](https://profiles.wordpress.org/ze3kr/)

[Translate “Full Site Cache for CloudFront” into your language.](https://translate.wordpress.org/projects/wp-plugins/full-site-cache-cf)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/full-site-cache-cf/),
check out the [SVN repository](https://plugins.svn.wordpress.org/full-site-cache-cf/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/full-site-cache-cf/)
by [RSS](https://plugins.trac.wordpress.org/log/full-site-cache-cf/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 0.0.2

 * Fixed for comment approval.
 * Changed the invalidate behavior.

#### 0.0.1

Published the first version

## Meta

 *  Version **0.0.2**
 *  Last updated **9 years ago**
 *  Active installations **10+**
 *  WordPress version ** 4.4 or higher **
 *  Tested up to **4.7.33**
 * Tags
 * [cache](https://wordpress.org/plugins/tags/cache/)[cloudfront](https://wordpress.org/plugins/tags/cloudfront/)
   [Optimize](https://wordpress.org/plugins/tags/optimize/)[performance](https://wordpress.org/plugins/tags/performance/)
   [speed](https://wordpress.org/plugins/tags/speed/)
 *  [Advanced View](https://wordpress.org/plugins/full-site-cache-cf/advanced/)

## Ratings

No reviews have been submitted yet.

[Your review](https://wordpress.org/support/plugin/full-site-cache-cf/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/full-site-cache-cf/reviews/)

## Contributors

 *   [ ze3kr ](https://profiles.wordpress.org/ze3kr/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/full-site-cache-cf/)

## Donate

Would you like to support the advancement of this plugin?

 [ Donate to this plugin ](https://tlo.xyz/donate/)