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

---

Søg plugins

Dette plugin **er ikke blevet testet med de seneste 3 større udgivelser af WordPress**.
Det vedligeholdes eller understøttes muligvis ikke længere og kan have kompatibilitetsproblemer,
når det bruges med nyere versioner af WordPress.

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

# Full Site Cache for CloudFront

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

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

 * [Detaljer](https://da.wordpress.org/plugins/full-site-cache-cf/#description)
 * [Vurderinger](https://da.wordpress.org/plugins/full-site-cache-cf/#reviews)
 *  [Installation](https://da.wordpress.org/plugins/full-site-cache-cf/#installation)
 * [Udvikling](https://da.wordpress.org/plugins/full-site-cache-cf/#developers)

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

## Beskrivelse

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.

## Anmeldelser

Der er ingen anmeldelser for denne widget.

## Bidragsydere & udviklere

“Full Site Cache for CloudFront” er open source-software. Følgende personer har 
bidraget til dette plugin.

Bidragsydere

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

[Oversæt “Full Site Cache for CloudFront” til dit eget sprog.](https://translate.wordpress.org/projects/wp-plugins/full-site-cache-cf)

### Interesseret i udvikling?

[Gennemse koden](https://plugins.trac.wordpress.org/browser/full-site-cache-cf/),
tjek [SVN repository](https://plugins.svn.wordpress.org/full-site-cache-cf/), eller
abonner på [udviklerloggen](https://plugins.trac.wordpress.org/log/full-site-cache-cf/)
via [RSS](https://plugins.trac.wordpress.org/log/full-site-cache-cf/?limit=100&mode=stop_on_copy&format=rss).

## Ændringslog

#### 0.0.2

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

#### 0.0.1

Published the first version

## Meta

 *  Version **0.0.2**
 *  Senest opdateret **10 år siden**
 *  Aktive installationer **10+**
 *  WordPress-version ** 4.4 eller højere **
 *  Testet op til **4.7.39**
 *  Sprog
 * [English (US)](https://wordpress.org/plugins/full-site-cache-cf/)
 * Tags
 * [cache](https://da.wordpress.org/plugins/tags/cache/)[cloudfront](https://da.wordpress.org/plugins/tags/cloudfront/)
   [Optimize](https://da.wordpress.org/plugins/tags/optimize/)[performance](https://da.wordpress.org/plugins/tags/performance/)
   [speed](https://da.wordpress.org/plugins/tags/speed/)
 *  [Avanceret visning](https://da.wordpress.org/plugins/full-site-cache-cf/advanced/)

## Bedømmelser

Der er endnu ikke indsendt nogen anmeldelser.

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

[Se alle anmeldelser](https://wordpress.org/support/plugin/full-site-cache-cf/reviews/)

## Bidragsydere

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

## Support

Har du noget at sige? Har du brug for hjælp?

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

## Donér

Vil du gerne støtte udviklingen af dette plugin?

 [ Donér til dette plugin ](https://tlo.xyz/donate/)