Title: Nginx Cache Controller
Author: Takayuki Miyauchi
Published: <strong>19 octobre 2011</strong>
Last modified: 22 novembre 2022

---

Recherche d’extensions

![](https://ps.w.org/nginx-champuru/assets/banner-772x250.png?rev=1048196)

Cette extension **n’a pas été testée avec plus de trois mises à jour majeures de
WordPress**. Elle peut ne plus être maintenue ou supportée et peut avoir des problèmes
de compatibilité lorsqu’elle est utilisée avec des versions de WordPress plus récentes.

![](https://s.w.org/plugins/geopattern-icon/nginx-champuru_bababa.svg)

# Nginx Cache Controller

 Par [Takayuki Miyauchi](https://profiles.wordpress.org/miyauchi/)

[Télécharger](https://downloads.wordpress.org/plugin/nginx-champuru.3.3.4.zip)

 * [Détails](https://fr.wordpress.org/plugins/nginx-champuru/#description)
 * [Avis](https://fr.wordpress.org/plugins/nginx-champuru/#reviews)
 *  [Installation](https://fr.wordpress.org/plugins/nginx-champuru/#installation)
 * [Développement](https://fr.wordpress.org/plugins/nginx-champuru/#developers)

 [Support](https://wordpress.org/support/plugin/nginx-champuru/)

## Description

This plugin provides some functions of controlling Nginx proxy server cache.

#### Sécurité

 * Making comment authors’ information ajaxed to prevent the information from caching.
 * Send no-cache header on password protected posts to prevent the posts from caching.
 * When a scheduled post is published, it will delete the cache through Ajax.

#### Controlling cache

 * Sending X-ACCEL-EXPIRES, you can specify the available period of the cache.
 * When you save your post and someone post comments, the cache is deleted automatically.
 * Add a menu on the admin bar to delete the cache.

#### Memo

 * Gets comment poster’s IP address by HTTP_X_FORWARDED_FOR header.
 * Fixes the issue that the permanent link setting includes index.php.
 * When the cache’s expiration period is more than 86400 sec, change the value of
   wp_verify_nonce() same as the period.

#### WP-CLI Support

Flush all proxy caches.
 wp nginx flush

Show list of all proxy caches.
 wp nginx list –format=csv

    ```
    wp nginx list --format=json
    ```

See help.
 wp help nginx

#### Langues

 * English(en) – [JOTAKI Taisuke](http://tekapo.com/)
 * Japanese(Ja) – [JOTAKI Taisuke](http://tekapo.com/)
 * Vietnamese(vi) – [Trong](http://bizover.net/)

#### Contributeur

 * [Ninjax Team](http://ninjax.cc/)
 * [miyauchi](https://profiles.wordpress.org/miyauchi/)
 * [wokamoto](https://profiles.wordpress.org/wokamoto/)
 * [gatespace](https://profiles.wordpress.org/gatespace/)

### Attribution

This plug-in is not guaranteed though the user of WordPress can freely use this 
plug-in free of charge regardless of the purpose.
 The author must acknowledge the
thing that the operation guarantee and the support in this plug-in use are not done
at all beforehand.

### Contact

 * https://github.com/miya0001/nginx-champuru

## Captures d’écrans

 * [[
 * Admin Panel
 * [[
 * Adminbar

## Installation

 * A plug-in installation screen is displayed on the WordPress admin panel.
 * It installs it in `wp-content/plugins`.
 * The plug-in is made effective.

Example of Nginx settings:

Allow X-ACCEL-EXPIRES for fastcgi.

    ```
       location ~ \.php$ {
            include        /etc/nginx/fastcgi_params;
            fastcgi_pass   unix:/tmp/php-fpm.sock;
            fastcgi_index  index.php;
            fastcgi_param  SCRIPT_FILENAME  $vhost_root/$fastcgi_script_name;
            fastcgi_pass_header "X-Accel-Redirect";
            fastcgi_pass_header "X-Accel-Expires";
        }
    ```

Setting cache directory for reverse proxy.

    ```
    proxy_cache_path  /var/cache/nginx levels=1:2 keys_zone=czone:4m max_size=50m inactive=120m;
    ```

 * The default path is /var/cache/nginx.
 * The default value of levels is 1:2.
 * You can change the cache path at the admin panel.

Setting the key for the reverse cache proxy.

    ```
    proxy_cache_key "$scheme://$host$request_uri"
    ```

 * You can customize proxy_cache_key with `nginxchampuru_get_reverse_proxy_key` 
   hook.

## Avis

![](https://secure.gravatar.com/avatar/a0d09f4c225fa21e2ce02f66d4a38f8d4f80e5010bf9da259fb92efdd6159c46?
s=60&d=retro&r=g)

### 󠀁[Nice plugin](https://wordpress.org/support/topic/nice-plugin-1622/)󠁿

 [Junko Nukaga](https://profiles.wordpress.org/nukaga/) 3 septembre 2016

It is great to be attentive the cache control. Thanks.

![](https://secure.gravatar.com/avatar/a8ad1e376fa35cde2fcbd4dd61d07038da38608b56efc5d8933f9b43cbacae2f?
s=60&d=retro&r=g)

### 󠀁[It works perfect for me](https://wordpress.org/support/topic/it-works-perfect-for-me/)󠁿

 [paulalexandru](https://profiles.wordpress.org/paulalexandru/) 3 septembre 2016

I made some tests and it does exactly what I want. Thank you a lot

![](https://secure.gravatar.com/avatar/2ab8e6dfdca1e0fd7c30361c5a524b840c9b821751bcd6603365df997ae262a1?
s=60&d=retro&r=g)

### 󠀁[It works](https://wordpress.org/support/topic/it-works-915/)󠁿

 [fabiomontefuscolo](https://profiles.wordpress.org/fabiomontefuscolo/) 3 septembre
2016

Nice work! Thank you very much.

![](https://secure.gravatar.com/avatar/b1738118b1515a2c312e90b71dc041a57a90db61144063f36de6b27587b507d6?
s=60&d=retro&r=g)

### 󠀁[nice plugin](https://wordpress.org/support/topic/nice-plugin-1380/)󠁿

 [Toro_Unit (Hiroshi Urabe)](https://profiles.wordpress.org/toro_unit/) 3 septembre
2016

Good Solution for nginx.

![](https://secure.gravatar.com/avatar/843e44ac6023574f3c9ca055288236eb2a19d20f0b82a31c111e5145a5f10ced?
s=60&d=retro&r=g)

### 󠀁[Cool](https://wordpress.org/support/topic/cool-361/)󠁿

 [Alicula](https://profiles.wordpress.org/ali3412/) 3 septembre 2016

It works!

![](https://secure.gravatar.com/avatar/138d957eba65e798376c8fdd6e71d093bb9b6802269b163018a0265a481eba24?
s=60&d=retro&r=g)

### 󠀁[Doesn't work](https://wordpress.org/support/topic/doesnt-work-1118/)󠁿

 [Panos Sakalakis](https://profiles.wordpress.org/meymigrou/) 3 septembre 2016 3
réponses

I’ve installed the plugin using WP 4.3.1 but I can’t find the Options tab. How I
am going to change the settings with no options tab?

 [ Lire les 16 avis ](https://wordpress.org/support/plugin/nginx-champuru/reviews/)

## Contributeurs/contributrices & développeurs/développeuses

« Nginx Cache Controller » est un logiciel libre. Les personnes suivantes ont contribué
à cette extension.

Contributeurs

 *   [ Takayuki Miyauchi ](https://profiles.wordpress.org/miyauchi/)
 *   [ wokamoto ](https://profiles.wordpress.org/wokamoto/)
 *   [ AMIMOTO ](https://profiles.wordpress.org/amimotoami/)
 *   [ emaildano ](https://profiles.wordpress.org/emaildano/)

[Traduisez « Nginx Cache Controller » dans votre langue.](https://translate.wordpress.org/projects/wp-plugins/nginx-champuru)

### Le développement vous intéresse ?

[Parcourir le code](https://plugins.trac.wordpress.org/browser/nginx-champuru/),
consulter le [SVN dépôt](https://plugins.svn.wordpress.org/nginx-champuru/), ou 
s’inscrire au [journal de développement](https://plugins.trac.wordpress.org/log/nginx-champuru/)
par [RSS](https://plugins.trac.wordpress.org/log/nginx-champuru/?limit=100&mode=stop_on_copy&format=rss).

## Journal des modifications

#### 3.3.4

 * Checked in WordPress 6.1.1

#### 3.3.1

 * Bug fix for PHP 7.2.x

#### 3.2.0

 * Bug fix for PHP 7.x

#### 3.2.0

 * Bug fix for WP-CLI

#### 3.1.1

 * Tested up to wp4.1

#### 3.1.0

 * Add filter for WP-API

https://github.com/megumiteam/nginx-cache-controller/compare/3.0.0…3.1.0

#### 3.0.0

 * list sub command supported csv and json

https://github.com/megumiteam/nginx-cache-controller/compare/2.9.0…3.0.0

#### 2.9.0

 * Add feed features.

https://github.com/megumiteam/nginx-cache-controller/compare/2.8.0…2.9.0

#### 2.8.0

 * Don’t load wp-cron.php when DISABLE_WP_CRON is defined.

https://github.com/megumiteam/nginx-cache-controller/compare/2.7.0…2.8.0

#### 2.7.0

https://github.com/megumiteam/nginx-cache-controller/compare/2.6.0…2.7.0

#### 2.6.0

 * refactoring

https://github.com/megumiteam/nginx-cache-controller/compare/2.5.0…2.6.0

#### 2.5.0

 * Up priority in the template_redirect hook

https://github.com/megumiteam/nginx-cache-controller/compare/2.4.0…2.5.0

#### 2.4.0

 * Bug fix. (SQL faild at RDS on the AWS.)

https://github.com/megumiteam/nginx-cache-controller/compare/2.3.0…2.4.0

#### 2.3.0

 * Bug fix. (Menu doen’t shown when DISALLOW_FILE_MODS is enabled.)

https://github.com/megumiteam/nginx-cache-controller/compare/2.2.1…2.3.0

#### 2.2.1

 * Add language Vietnamese (vi).

#### 2.2.0

 * Add Grunt.
 * Update admin interface.

https://github.com/megumiteam/nginx-cache-controller/compare/2.1.0…2.2.0

#### 2.1.0

 * Tested up to 3.8.

#### 2.0.0

 * [Bug fix](https://github.com/megumiteam/nginx-cache-controller/compare/1.9.0...2.0.0)

#### 1.9.0

 * Add filter « nginxchampuru_db_cached_url »

#### 1.8.0

 * Add WP-CLI Support

#### 1.7.0

 * problem when redirect after clear cache fixed.
 * Add filter hook to the HTTP responce header.

#### 1.6.1

 * Bug on SSL fixed

#### 1.2.0

 * fix large site issues.(timeout when too many urls)
 * add like box to admin panel

#### 1.0.0

 * Rename to « Nginx Cache Controller »
 * Cache Controll
 * Auto-Flush Cache

#### 0.1.0

 * The first release.

## Méta

 *  Version **3.3.4**
 *  Dernière mise à jour **il y a 3 ans**
 *  Installations actives **1 000+**
 *  Version de WordPress ** 3.4 ou plus **
 *  Testé jusqu’à **6.1.10**
 *  Langue
 * [English (US)](https://wordpress.org/plugins/nginx-champuru/)
 * Étiquettes
 * [cache](https://fr.wordpress.org/plugins/tags/cache/)[nginx](https://fr.wordpress.org/plugins/tags/nginx/)
   [reverse proxy](https://fr.wordpress.org/plugins/tags/reverse-proxy/)
 *  [Vue avancée](https://fr.wordpress.org/plugins/nginx-champuru/advanced/)

## Évaluations

 4.7 sur 5 étoiles.

 *  [  13 avis à 5 étoiles     ](https://wordpress.org/support/plugin/nginx-champuru/reviews/?filter=5)
 *  [  1 avis à 4 étoile     ](https://wordpress.org/support/plugin/nginx-champuru/reviews/?filter=4)
 *  [  0 avis à 3 étoile     ](https://wordpress.org/support/plugin/nginx-champuru/reviews/?filter=3)
 *  [  0 avis à 2 étoile     ](https://wordpress.org/support/plugin/nginx-champuru/reviews/?filter=2)
 *  [  1 avis à 1 étoile     ](https://wordpress.org/support/plugin/nginx-champuru/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/nginx-champuru/reviews/#new-post)

[Voir tous les avis](https://wordpress.org/support/plugin/nginx-champuru/reviews/)

## Contributeurs

 *   [ Takayuki Miyauchi ](https://profiles.wordpress.org/miyauchi/)
 *   [ wokamoto ](https://profiles.wordpress.org/wokamoto/)
 *   [ AMIMOTO ](https://profiles.wordpress.org/amimotoami/)
 *   [ emaildano ](https://profiles.wordpress.org/emaildano/)

## Support

Quelque chose à dire ? Besoin d’aide ?

 [Voir le forum de support](https://wordpress.org/support/plugin/nginx-champuru/)

## Faire un don

Souhaitez-vous soutenir l’avancement de cette extension ?

 [ Faire un don à cette extension ](https://amimoto-ami.com/)