Title: Nginx Cache Controller
Author: Takayuki Miyauchi
Published: <strong>Oktabr 19, 2011</strong>
Last modified: Noyabr 22, 2022

---

Search plugins

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

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/nginx-champuru_bababa.svg)

# Nginx Cache Controller

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

[Download](https://downloads.wordpress.org/plugin/nginx-champuru.3.3.4.zip)

 * [Details](https://uz.wordpress.org/plugins/nginx-champuru/#description)
 * [Reviews](https://uz.wordpress.org/plugins/nginx-champuru/#reviews)
 *  [Installation](https://uz.wordpress.org/plugins/nginx-champuru/#installation)
 * [Development](https://uz.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.

#### Security

 * 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

#### Языки

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

#### Contributor

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

### Ishtirokchilar

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.

### знакомый

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

## Screenshots

 * [[
 * 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.

## Reviews

![](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/) Sentabr 3, 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/) Sentabr 3, 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/) Sentabr 
3, 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/) Sentabr 
3, 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/) Sentabr 3, 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/) Sentabr 3, 2016 3 
replies

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?

 [ Read all 16 reviews ](https://wordpress.org/support/plugin/nginx-champuru/reviews/)

## Contributors & Developers

“Nginx Cache Controller” is open source software. The following people have contributed
to this plugin.

Contributors

 *   [ 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/)

[Translate “Nginx Cache Controller” into your language.](https://translate.wordpress.org/projects/wp-plugins/nginx-champuru)

### Interested in development?

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

## Changelog

#### 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.

## Meta

 *  Version **3.3.4**
 *  Last updated **3 yil ago**
 *  Active installations **1 000+**
 *  WordPress version ** 3.4 or higher **
 *  Tested up to **6.1.10**
 *  Language
 * [English (US)](https://wordpress.org/plugins/nginx-champuru/)
 * Tags
 * [cache](https://uz.wordpress.org/plugins/tags/cache/)[nginx](https://uz.wordpress.org/plugins/tags/nginx/)
   [reverse proxy](https://uz.wordpress.org/plugins/tags/reverse-proxy/)
 *  [Advanced View](https://uz.wordpress.org/plugins/nginx-champuru/advanced/)

## Ratings

 4.7 out of 5 stars.

 *  [  13 5-star reviews     ](https://wordpress.org/support/plugin/nginx-champuru/reviews/?filter=5)
 *  [  1 4-star review     ](https://wordpress.org/support/plugin/nginx-champuru/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/nginx-champuru/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/nginx-champuru/reviews/?filter=2)
 *  [  1 1-star review     ](https://wordpress.org/support/plugin/nginx-champuru/reviews/?filter=1)

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

[See all reviews](https://wordpress.org/support/plugin/nginx-champuru/reviews/)

## Contributors

 *   [ 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

Got something to say? Need help?

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

## Donate

Would you like to support the advancement of this plugin?

 [ Donate to this plugin ](https://amimoto-ami.com/)