Hi,
So we were glad to see Nginx Cache Manager working with Apache!
We have 1 production website where the customer already informed us about issues with their products not being visible in the cart after they were added to cart. We do not use other caching plugins that can interact with such cookies and the way they are cached.
The only issue is that the cache rules are not complete and WooCommerce has basically no rules at all for caching.
The rule found was:
What is my question in end to Cpanel, would the current caching solution should work with WooCommerce and if so, how come you folks made a rule to exclude logged in users, yet nothing for woocommerce cookies.
To remind you that I have tested this in both websites, and indeed my cart shows always the right amount of products, yet that is only when logged in.
Opening another browser in my case once the issue occurs, will always show cart 0 no matter how many products were added to it.
So first of all I have a question for all WordPress + WooCommerce users who use Apache + Nginx Cache Manager together, how do you solved your issues of caching WooCommerce cookies and if so please share the code used.
Second question is for Cpanel since I already have a ticket open and seems was escalated to LVL2 support, you realise how much could had been avoided, by properly informing users they need to add their own rules about properly caching WooCommerce, or just as in our case, the customers we have will come running to us telling us that products are not visible in cart, especially when Ajax was used. Searched in all forum about the similar issues, all I can say i maybe people here do not run WooCommerce since we have now a second WooCommerce site that has the very same issues. Products are visible in /cart yet not in the websites cart . This is clearly a Nginx Caching issue/conflict with WooCommerce cookies.
A few ressources:
Gist Code
Serverfault
So we were glad to see Nginx Cache Manager working with Apache!
We have 1 production website where the customer already informed us about issues with their products not being visible in the cart after they were added to cart. We do not use other caching plugins that can interact with such cookies and the way they are cached.
The only issue is that the cache rules are not complete and WooCommerce has basically no rules at all for caching.
The rule found was:
Code:
./ea-nginx/server.conf.tt: if ( $http_cookie ~ "wordpress_logged_in_[a-zA-Z0-9]+" ) {
set $CPANEL_PROXY_CACHE off;
set $CPANEL_SKIP_PROXY 1;
}
To remind you that I have tested this in both websites, and indeed my cart shows always the right amount of products, yet that is only when logged in.
Opening another browser in my case once the issue occurs, will always show cart 0 no matter how many products were added to it.
So first of all I have a question for all WordPress + WooCommerce users who use Apache + Nginx Cache Manager together, how do you solved your issues of caching WooCommerce cookies and if so please share the code used.
Second question is for Cpanel since I already have a ticket open and seems was escalated to LVL2 support, you realise how much could had been avoided, by properly informing users they need to add their own rules about properly caching WooCommerce, or just as in our case, the customers we have will come running to us telling us that products are not visible in cart, especially when Ajax was used. Searched in all forum about the similar issues, all I can say i maybe people here do not run WooCommerce since we have now a second WooCommerce site that has the very same issues. Products are visible in /cart yet not in the websites cart . This is clearly a Nginx Caching issue/conflict with WooCommerce cookies.
A few ressources:
Gist Code
Serverfault
Last edited by a moderator: