Hi there,
We have a high-volume site where users seem to lose their cart. Here's what we're seeing:
1. Log in
2. Create a cart
3. Confirm there's a cart ID stored in the cache in the key DW_extranet_AccessUserCartID
4. Wait a bit
5. Reload the page
Now the cart is gone and so is the cache key.
Initially, this process would happen after a minute or so. We then added more RAM to the site and now the problem occurs less frequent.
We did a lot of debugging of standard and custom code, but can't find anything.
Could this be related to the MemoryCache used in CartSession (MemoryCacheManager)? The default duration for the cache key is 12 hours, but could it be that items are ejected from the cache earlier due to memory pressure? It seems that Cache for these keys is a bit risky. Or is the key also stored elsewhere like Session and I am not seeing it?
We did some debugging and it seems the DynamicWeb MemoryCache instance has around 10K items with a total size of 490 MB (at the moment, it fluctuates a lot).
Thanks!
Imar