Skip to content

Commit

Permalink
Updated cart expiration time as per MB
Browse files Browse the repository at this point in the history
  • Loading branch information
TheCartpenter committed May 2, 2024
1 parent f861291 commit 025ebe8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion upload/system/library/cart/cart.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public function __construct(object $registry) {
$this->weight = $registry->get('weight');

// Remove all the expired carts with no customer ID
$this->db->query("DELETE FROM `" . DB_PREFIX . "cart` WHERE (`api_id` > '0' OR `customer_id` = '0') AND `date_added` < DATE_SUB(NOW(), INTERVAL 1 HOUR)");
$this->db->query("DELETE FROM `" . DB_PREFIX . "cart` WHERE (`api_id` > '0' OR `customer_id` = '0') AND `date_added` < DATE_SUB(NOW(), INTERVAL " . (int)$this->config->get('config_session_expire') . " SECOND)");

if ($this->customer->getId()) {
// We want to change the session ID on all the old items in the customers cart
Expand Down

0 comments on commit 025ebe8

Please sign in to comment.