QuestionQ44

VerifiedTroubleshoot infrastructure and configuration issues

An Architect is investigating a merchant's Adobe Commerce production environment, where all customer session data is being lost randomly. Customer session data is configured to persist in Redis, as are all caches (except the full-page cache, which Varnish handles).

After an initial review, the Architect can reproduce the customer-session-data loss by flushing the Magento cache storage, either through the Adobe Commerce Admin Panel or by running bin/magento cache:flush from the command line. Refreshing all caches in the Adobe Commerce Admin Panel or running bin/magento cache:clean from the command line does not cause session data to be lost.

What should be the next step?

Explanation

Flushing cache storage purges the underlying storage and can affect other processes using that storage, while cleaning removes only enabled Adobe Commerce cache entries. Redis database numbers must be different when Redis is used for more than one type of Commerce caching or session storage; separating the cache and session databases prevents a cache flush from deleting session keys.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!