Skip to content

Commit

Permalink
NEXT-21994 - Remove prefix from delete call
Browse files Browse the repository at this point in the history
  • Loading branch information
Isengo1989 authored and shyim committed Jun 15, 2022
1 parent 19a9d96 commit 16e078c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
title: Fix double cart prefix on delete in redis cache adapter
issue: NEXT-21987
author: Micha Hobert
author_email: [email protected]
author_github: Isengo1989
---
# Core
* Removed `self::PREFIX` from `$this->delete()` because the prefix is already added in the delete method
2 changes: 1 addition & 1 deletion src/Core/Checkout/Cart/RedisCartPersister.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ public function save(Cart $cart, SalesChannelContext $context): void

$this->eventDispatcher->dispatch($event);
if (!$event->shouldBePersisted()) {
$this->delete(self::PREFIX . $cart->getToken(), $context);
$this->delete($cart->getToken(), $context);

return;
}
Expand Down

0 comments on commit 16e078c

Please sign in to comment.