Nope. No redirect. Can it be some problem with the htaccess?
Now I found out if I put $cart->adItem(productId, amount);
and run it. It do exactly what i want (add the product to the cart with right amount). Then comment it out and save and reload the page it add the amount again. If I reload again it dosnt add more. What caches the code?
-
MODX Staff
- 10,725 Posts
If you are not calling your Snippet non-cacheable, it caches the result of the first access to the page. Is this what you mean?
I call the snippet [[!snippet]] and still I get it cached in chrome.
-
MODX Staff
- 10,725 Posts
That's very interesting, thanks for sharing that information. I have a default favicon setup on my localhost for testing, so I've never encountered this personally, but it does seem to be bug in Chrome.