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

---

Søk i utvidelser

Denne utvidelsen **har ikke blitt testet mot noen av de siste 3 hovedutgivelsene
av WordPress**. Den er kanskje ikke lenger holdt vedlike eller støttet, og den kan
ha kompatibilitetsproblemer med nyeste versjoner av WordPress.

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

# Full Site Cache for CloudFront

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

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

 * [Detaljer](https://nb.wordpress.org/plugins/full-site-cache-cf/#description)
 * [Omtaler](https://nb.wordpress.org/plugins/full-site-cache-cf/#reviews)
 *  [Installering](https://nb.wordpress.org/plugins/full-site-cache-cf/#installation)
 * [Utvikling](https://nb.wordpress.org/plugins/full-site-cache-cf/#developers)

 [Brukerstøtte](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.

## Installasjon

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.

## Vurderinger

Det er ingen omtaler av denne utvidelsen.

## Bidragsytere og utviklere

«Full Site Cache for CloudFront» er programvare med åpen kildekode. Følgende personer
har bidratt til denne utvidelsen:

Bidragsytere

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

[Oversett “Full Site Cache for CloudFront” til ditt språk.](https://translate.wordpress.org/projects/wp-plugins/full-site-cache-cf)

### Interessert i utvikling?

[Bla gjennom koden](https://plugins.trac.wordpress.org/browser/full-site-cache-cf/),
sjekk ut [SVN-repositoriet](https://plugins.svn.wordpress.org/full-site-cache-cf/),
eller abonner på [utviklingsloggen](https://plugins.trac.wordpress.org/log/full-site-cache-cf/)
med [RSS](https://plugins.trac.wordpress.org/log/full-site-cache-cf/?limit=100&mode=stop_on_copy&format=rss).

## Endringslogg

#### 0.0.2

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

#### 0.0.1

Published the first version

## Meta

 *  Versjon **0.0.2**
 *  Sist oppdatert **9 år siden**
 *  Aktive installasjoner **10+**
 *  WordPress-versjon ** 4.4 eller nyere **
 *  Testet opp til **4.7.33**
 *  Språk
 * [English (US)](https://wordpress.org/plugins/full-site-cache-cf/)
 * Stikkord
 * [cache](https://nb.wordpress.org/plugins/tags/cache/)[cloudfront](https://nb.wordpress.org/plugins/tags/cloudfront/)
   [Optimize](https://nb.wordpress.org/plugins/tags/optimize/)[performance](https://nb.wordpress.org/plugins/tags/performance/)
   [speed](https://nb.wordpress.org/plugins/tags/speed/)
 *  [Avansert visning](https://nb.wordpress.org/plugins/full-site-cache-cf/advanced/)

## Vurderinger

No reviews have been submitted yet.

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

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

## Bidragsytere

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

## Brukerstøtte

Har du noe å si? Trenger du hjelp?

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

## Donér

Vil du støtte videreutviklingen av denne utvidelsen?

 [ Doner til denne utvidelsen ](https://tlo.xyz/donate/)