UPDATE 
  cscart_lock_keys 
SET 
  expiry_at = UNIX_TIMESTAMP(NOW()) + 30, 
  token = 'j28FKVsaE9d9+eO1/ICjVrQ1XsodF8QlZ04griKQKCI=' 
WHERE 
  key_id = '444c7a0176c9144e539dd41053dbfb442c28eb38e3335ca2833218e36ebea010' 
  AND (
    token = 'j28FKVsaE9d9+eO1/ICjVrQ1XsodF8QlZ04griKQKCI=' 
    OR expiry_at <= UNIX_TIMESTAMP(NOW())
  )

Query time 0.00030