UPDATE 
  cscart_lock_keys 
SET 
  expiry_at = UNIX_TIMESTAMP(NOW()) + 30, 
  token = 'qFxw1v70r2t7OLeCR9pwG82AN7zI1pv5BtGKZr1SsZo=' 
WHERE 
  key_id = '9691e8aed5637bf8ef5e0458e1ba6cf3bd256b4ddd13186007ce63ce1500da0c' 
  AND (
    token = 'qFxw1v70r2t7OLeCR9pwG82AN7zI1pv5BtGKZr1SsZo=' 
    OR expiry_at <= UNIX_TIMESTAMP(NOW())
  )

Query time 0.00018