Hi! I just moved from Easy Engine and I'm loving Webinoly so far, though I'm having an issue with the Easy Digital Downloads checkout being cached.
I can't seem to skip the cache on checkout. The products stay there for everyone across everything.
It's also worth mentions I'm properly a noob at Nginx
Here's what I've added to to my custom-nginx.conf under /var/www/mydomain.com
if ($request_uri ~* "/cart.*/|/my-account.*|/checkout.*|/purchase-confirmation.*|/edd-sl.*|/login/") {
set $skip_cache 1;
}
if ($http_cookie ~* “ edd_items_in_cart |comment_author|wordpress_[a-f0-9]+|wp-postpass|wordpress_no_cache|wordpress_logged_in”) {
set $skip_cache 1;
}
When I access /checkout/ while viewing the logs, it states bypass which is expected? Though it still displays the cached products.
I also need the /edd-sl.* (for software licensing) not to be cached. I haven't checked this out yet.
I'm also securing EDD downloads with this:
rewrite ^/wp-content/uploads/edd/(.*)\.zip$ / permanent;
is $skip_cache being used before my custom config? or am I missing something?
I'm keeping cache off for now. Any point in the right direction or tips would be highly appreciated! Thank you!
Bonus
For those who's using The SEO Framework line me. I noticed the sitemap couldn't be accessed. I found this code which works well from my custom config.
## sitemap location = /sitemap.xml { rewrite ^/sitemap.xml$ "/?the_seo_framework_sitemap=xml" permanent; }