UPDATE 
  cscart_lock_keys 
SET 
  expiry_at = UNIX_TIMESTAMP(NOW()) + 30, 
  token = '/7c/Z8uFivmoCsNfZBWjg0mfNKi/u1ZkD6K3Pe1oMx4=' 
WHERE 
  key_id = 'ba960d2baedc89342bb920490dea93a52941e0aa145938421c9d5b4e43398f24' 
  AND (
    token = '/7c/Z8uFivmoCsNfZBWjg0mfNKi/u1ZkD6K3Pe1oMx4=' 
    OR expiry_at <= UNIX_TIMESTAMP(NOW())
  )

Query time 0.00042