Title: Change fastcgi_cache_key
Last modified: August 31, 2016

---

# Change fastcgi_cache_key

 *  [cartns](https://wordpress.org/support/users/cartns/)
 * (@cartns)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/change-fastcgi_cache_key/)
 * Hello,
 * Thanks for this great plugin.
 * How can I change fastcgi_cache_key to “$scheme$request_method$host$request_uri”
 * This is more safe than yours.
 * Please check this url:
 * [http://serverfault.com/questions/612727/how-to-prevent-nginx-caching-blank-pages](http://serverfault.com/questions/612727/how-to-prevent-nginx-caching-blank-pages)
 * [https://wordpress.org/plugins/nginx-champuru/](https://wordpress.org/plugins/nginx-champuru/)

Viewing 1 replies (of 1 total)

 *  [holstebm](https://wordpress.org/support/users/holstebm/)
 * (@holstebm)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/change-fastcgi_cache_key/#post-7139885)
 * Hello,
 * I think this should do it, assuming you are just caching GET requests:
 *     ```
       add_filter('nginxchampuru_get_reverse_proxy_key', function($url){
           $url_key = preg_replace('/(https?):\/\//u', '$1GET', $url);
           return md5($url_key);
       });
       ```
   
 * Add that to your themes functions.php…
 * Let me know if that helps.

Viewing 1 replies (of 1 total)

The topic ‘Change fastcgi_cache_key’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/nginx-champuru_bababa.svg)
 * [Nginx Cache Controller](https://wordpress.org/plugins/nginx-champuru/)
 * [Support Threads](https://wordpress.org/support/plugin/nginx-champuru/)
 * [Active Topics](https://wordpress.org/support/plugin/nginx-champuru/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/nginx-champuru/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/nginx-champuru/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [holstebm](https://wordpress.org/support/users/holstebm/)
 * Last activity: [10 years, 3 months ago](https://wordpress.org/support/topic/change-fastcgi_cache_key/#post-7139885)
 * Status: not resolved