Comment out skipping caching of requests with query strings:
#if ($query_string != "") {
# set $skip_cache 1;
#}
Remove xmlrpc.php and /feed/ from the regex to check if we skip cache. We want requests to feeds to be cached.
if ($request_uri ~* "(/wp-admin/|wp-.*.php|index.php|sitemap(_index)?.xml|[a-z0-9_-]+-sitemap([0-9]+)?.xml)") {
set $skip_cache 1;
}
Make sure we're including our new modified conf file in `/etc/nginx/sites-available/spiritedmedia.com`
Copy
redis-php7.conf
toredis-php7-modified.conf
Comment out skipping caching of requests with query strings:
Remove
xmlrpc.php
and/feed/
from the regex to check if we skip cache. We want requests to feeds to be cached.include common/redis-php7-modified.conf;