We should have a Cart cache context. This returns data in the form of the current user's cart (like a cid of order IDs?) something to let Drupal know that a new cart or removed cart can control caches.
We should have a Cart cache context. This returns data in the form of the current user's cart (like a cid of order IDs?) something to let Drupal know that a new cart or removed cart can control caches.
Comments
Comment #2
steveoliver commentedWorking on this.
Comment #3
steveoliver commentedSo I created a 'cart' cache context in this pull request, but adding it to the Cart page as https://gist.github.com/steveoliver/fe02d1fa24673b101b9d2e4094de77dc didn't seem to have any affect on the build. Ideas?
Comment #4
bojanz commentedLet's continue in #2659032: Add the cache contexts for the cart block.