Title: Excluding URLs from WP Super Cache on NGINX
Last modified: August 31, 2016

---

# Excluding URLs from WP Super Cache on NGINX

 *  [wl702124](https://wordpress.org/support/users/wlin/)
 * (@wlin)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/nginx-super-cache-settings/)
 * Hi, currently running WP on Nginx and I want to avoid caching the page /add-a-
   quote/, I’ve added that string in the exclusions list under Advanced. I’ve also
   added this to the nginx server config
 *     ```
       if ($request_uri ~* "(/add-a-quote|/random-story|/contact-form|/wp-admin/|/xmlrpc.php|/wp-(app|cron|login|register|mail).php|wp-.*.php|/feed/|index.php|wp-comments-popup.php|wp-links-opml.php|wp-locations.php|sitemap(_index)?.xml|[a-z0-9_-]+-sitemap([0-9]+)?.xml)") {
               set $cache_uri 'null cache';
       }
       ```
   
 * But it still keeps caching that page. Any ideas?
 * [https://wordpress.org/plugins/wp-super-cache/](https://wordpress.org/plugins/wp-super-cache/)

The topic ‘Excluding URLs from WP Super Cache on NGINX’ is closed to new replies.

 * ![](https://ps.w.org/wp-super-cache/assets/icon-256x256.png?rev=3506220)
 * [WP Super Cache](https://wordpress.org/plugins/wp-super-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-super-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-super-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-super-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-super-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-super-cache/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [wl702124](https://wordpress.org/support/users/wlin/)
 * Last activity: [10 years, 4 months ago](https://wordpress.org/support/topic/nginx-super-cache-settings/)
 * Status: not resolved