Browse Source

Update request_uri for new patterns

old-stable
Mitesh Shah 11 years ago
parent
commit
f3f66a9645
  1. 2
      usr/share/easyengine/nginx/wp/w3tc.conf
  2. 2
      usr/share/easyengine/nginx/wp/wpfc.conf
  3. 2
      usr/share/easyengine/nginx/wp/wpsc.conf
  4. 2
      usr/share/easyengine/nginx/wpsubdir/w3tc.conf
  5. 2
      usr/share/easyengine/nginx/wpsubdir/wpfc.conf
  6. 2
      usr/share/easyengine/nginx/wpsubdir/wpsc.conf
  7. 2
      usr/share/easyengine/nginx/wpsubdomain/w3tc.conf
  8. 2
      usr/share/easyengine/nginx/wpsubdomain/wpfc.conf
  9. 2
      usr/share/easyengine/nginx/wpsubdomain/wpsc.conf

2
usr/share/easyengine/nginx/wp/w3tc.conf

@ -21,7 +21,7 @@ server {
} }
# Don't Cache Uris Containing The Following Segments # Don't Cache Uris Containing The Following Segments
if ($request_uri ~* "(/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)") { if ($request_uri ~* "(/wp-admin/|/xmlrpc.php|wp-.*.php|index.php|/feed/|sitemap(_index)?.xml|[a-z0-9_-]+-sitemap([0-9]+)?.xml|/translate.*|/store.*|/cart.*|/my-account.*|/checkout.*|/addons.*)") {
set $cache_uri 'null cache'; set $cache_uri 'null cache';
} }

2
usr/share/easyengine/nginx/wp/wpfc.conf

@ -21,7 +21,7 @@ server {
} }
# Don't Cache Uris Containing The Following Segments # Don't Cache Uris Containing The Following Segments
if ($request_uri ~* "(/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)") { if ($request_uri ~* "(/wp-admin/|/xmlrpc.php|wp-.*.php|index.php|/feed/|sitemap(_index)?.xml|[a-z0-9_-]+-sitemap([0-9]+)?.xml)") {
set $skip_cache 1; set $skip_cache 1;
} }

2
usr/share/easyengine/nginx/wp/wpsc.conf

@ -21,7 +21,7 @@ server {
} }
# Don't Cache Uris Containing The Following Segments # Don't Cache Uris Containing The Following Segments
if ($request_uri ~* "(/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)") { if ($request_uri ~* "(/wp-admin/|/xmlrpc.php|wp-.*.php|index.php|/feed/|sitemap(_index)?.xml|[a-z0-9_-]+-sitemap([0-9]+)?.xml)") {
set $cache_uri 'null cache'; set $cache_uri 'null cache';
} }

2
usr/share/easyengine/nginx/wpsubdir/w3tc.conf

@ -27,7 +27,7 @@ server {
} }
# Don't Cache Uris Containing The Following Segments # Don't Cache Uris Containing The Following Segments
if ($request_uri ~* "(/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)") { if ($request_uri ~* "(/wp-admin/|/xmlrpc.php|wp-.*.php|index.php|/feed/|sitemap(_index)?.xml|[a-z0-9_-]+-sitemap([0-9]+)?.xml)") {
set $cache_uri 'null cache'; set $cache_uri 'null cache';
} }

2
usr/share/easyengine/nginx/wpsubdir/wpfc.conf

@ -27,7 +27,7 @@ server {
} }
# Don't Cache Uris Containing The Following Segments # Don't Cache Uris Containing The Following Segments
if ($request_uri ~* "(/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)") { if ($request_uri ~* "(/wp-admin/|/xmlrpc.php|wp-.*.php|index.php|/feed/|sitemap(_index)?.xml|[a-z0-9_-]+-sitemap([0-9]+)?.xml)") {
set $skip_cache 1; set $skip_cache 1;
} }

2
usr/share/easyengine/nginx/wpsubdir/wpsc.conf

@ -27,7 +27,7 @@ server {
} }
# Don't Cache Uris Containing The Following Segments # Don't Cache Uris Containing The Following Segments
if ($request_uri ~* "(/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)") { if ($request_uri ~* "(/wp-admin/|/xmlrpc.php|wp-.*.php|index.php|/feed/|sitemap(_index)?.xml|[a-z0-9_-]+-sitemap([0-9]+)?.xml)") {
set $cache_uri 'null cache'; set $cache_uri 'null cache';
} }

2
usr/share/easyengine/nginx/wpsubdomain/w3tc.conf

@ -27,7 +27,7 @@ server {
} }
# Don't Cache Uris Containing The Following Segments # Don't Cache Uris Containing The Following Segments
if ($request_uri ~* "(/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)") { if ($request_uri ~* "(/wp-admin/|/xmlrpc.php|wp-.*.php|index.php|/feed/|sitemap(_index)?.xml|[a-z0-9_-]+-sitemap([0-9]+)?.xml)") {
set $cache_uri 'null cache'; set $cache_uri 'null cache';
} }

2
usr/share/easyengine/nginx/wpsubdomain/wpfc.conf

@ -27,7 +27,7 @@ server {
} }
# Don't Cache Uris Containing The Following Segments # Don't Cache Uris Containing The Following Segments
if ($request_uri ~* "(/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)") { if ($request_uri ~* "(/wp-admin/|/xmlrpc.php|wp-.*.php|index.php|/feed/|sitemap(_index)?.xml|[a-z0-9_-]+-sitemap([0-9]+)?.xml)") {
set $skip_cache 1; set $skip_cache 1;
} }

2
usr/share/easyengine/nginx/wpsubdomain/wpsc.conf

@ -27,7 +27,7 @@ server {
} }
# Don't Cache Uris Containing The Following Segments # Don't Cache Uris Containing The Following Segments
if ($request_uri ~* "(/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)") { if ($request_uri ~* "(/wp-admin/|/xmlrpc.php|wp-.*.php|index.php|/feed/|sitemap(_index)?.xml|[a-z0-9_-]+-sitemap([0-9]+)?.xml)") {
set $cache_uri 'null cache'; set $cache_uri 'null cache';
} }

Loading…
Cancel
Save