New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

App Pool recycle clears the cart #2136

Closed
FlippingKnight opened this Issue Mar 8, 2018 · 3 comments

Comments

Projects
None yet
4 participants
@FlippingKnight

FlippingKnight commented Mar 8, 2018

We are using Merchello and been doing so for a few years now.
We got one really big issue that we need help with resolving.

The problem is that whenever app pool is recycled, if the page is updated (a page refresh is enough) within 1 minute after the recycling, the cart will be empty.
The theory is that it takes time for Umbraco to rebuild and if you try to reach the site during this time MerchelloItemCache will not be accessible.

We have tried changing the app pool settings but nothing seems to work.

Any advice is greatly appreciated.

Thanks!

//
Tobias

@ronaldbarendse

This comment has been minimized.

ronaldbarendse commented Mar 21, 2018

Looking at the Merchello source, the customer is identified by using the merchello cookie, so that should survive restarts... Just double check that the same customer is returned (same GUID)...

The basket is first retrieved from the Umbraco RuntimeCache and if not found from the Merchello ItemCacheService. This service uses the database, so there should be rows for the basket: make sure you are saving the basket after changes (Basket.Save();). If you're using the BasketControllerBase as controller base class this is already done for you in AddBasketItem().

Otherwise: isn't this related to session state that is stored InProc by default and therefore gets emptied out on application restarts/recycles?

@FlippingKnight

This comment has been minimized.

FlippingKnight commented Mar 29, 2018

Thanks for the answer ronaldbarendse! I'll take a closer look at the merchello cookies.

I think it indeed is related to the session state. Thank you again! I now got some more ideas on how to debug

@eriksimonic

This comment has been minimized.

eriksimonic commented Aug 15, 2018

@FlippingKnight Do you use InProc session state? If so try to configure SqlSession state. Solved a lot of my problems.

@YodasMyDad YodasMyDad closed this Oct 17, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment